hotspot/src/share/vm/oops/arrayKlass.hpp
changeset 15437 eabd4555d072
parent 13952 e3cf184080bc
child 18439 725ce18186b3
equal deleted inserted replaced
15431:570c5062ab8a 15437:eabd4555d072
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   104 
   104 
   105   // Sizing
   105   // Sizing
   106   static int header_size()                 { return sizeof(ArrayKlass)/HeapWordSize; }
   106   static int header_size()                 { return sizeof(ArrayKlass)/HeapWordSize; }
   107   static int static_size(int header_size);
   107   static int static_size(int header_size);
   108 
   108 
       
   109 #if INCLUDE_SERVICES
       
   110   virtual void collect_statistics(KlassSizeStats *sz) const {
       
   111     Klass::collect_statistics(sz);
       
   112     // Do nothing for now, but remember to modify if you add new
       
   113     // stuff to ArrayKlass.
       
   114   }
       
   115 #endif
       
   116 
   109   // Java vtable
   117   // Java vtable
   110   klassVtable* vtable() const;             // return new klassVtable
   118   klassVtable* vtable() const;             // return new klassVtable
   111   int  vtable_length() const               { return _vtable_len; }
   119   int  vtable_length() const               { return _vtable_len; }
   112   static int base_vtable_length()          { return Universe::base_vtable_size(); }
   120   static int base_vtable_length()          { return Universe::base_vtable_size(); }
   113   void set_vtable_length(int len)          { assert(len == base_vtable_length(), "bad length"); _vtable_len = len; }
   121   void set_vtable_length(int len)          { assert(len == base_vtable_length(), "bad length"); _vtable_len = len; }