7168280: Eliminate the generic signature index slot from field array for field without generic signature

Only allocate the generic signature index slot in the field array for field with generic signature attribute.

Reviewed-by: coleenp, dlong
This commit is contained in:
Jiangli Zhou 2012-05-21 14:10:35 -04:00
parent 57692966b7
commit 31e63d5a3a
12 changed files with 199 additions and 53 deletions

View file

@ -67,7 +67,7 @@ class fieldDescriptor VALUE_OBJ_CLASS_SPEC {
oop loader() const;
// Offset (in words) of field from start of instanceOop / klassOop
int offset() const { return field()->offset(); }
Symbol* generic_signature() const { return field()->generic_signature(_cp); }
Symbol* generic_signature() const;
int index() const { return _index; }
typeArrayOop annotations() const;