mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8148047: Move the vtable length field to Klass
Reviewed-by: cjplummer, twisti, coleenp, kbarrett
This commit is contained in:
parent
97e169ac77
commit
211dc93a85
32 changed files with 78 additions and 80 deletions
|
@ -39,7 +39,6 @@ class ArrayKlass: public Klass {
|
|||
int _dimension; // This is n'th-dimensional array.
|
||||
Klass* volatile _higher_dimension; // Refers the (n+1)'th-dimensional array (if present).
|
||||
Klass* volatile _lower_dimension; // Refers the (n-1)'th-dimensional array (if present).
|
||||
int _vtable_len; // size of vtable for this klass
|
||||
|
||||
protected:
|
||||
// Constructors
|
||||
|
@ -112,9 +111,6 @@ class ArrayKlass: public Klass {
|
|||
|
||||
// Java vtable
|
||||
klassVtable* vtable() const; // return new klassVtable
|
||||
int vtable_length() const { return _vtable_len; }
|
||||
static int base_vtable_length() { return Universe::base_vtable_size(); }
|
||||
void set_vtable_length(int len) { assert(len == base_vtable_length(), "bad length"); _vtable_len = len; }
|
||||
protected:
|
||||
inline intptr_t* start_of_vtable() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue