comparison agent/src/share/classes/sun/jvm/hotspot/oops/AccessFlags.java @ 6100:71afdabfd05b

7168280: Eliminate the generic signature index slot from field array for field without generic signature. Summary: Only allocate the generic signature index slot in the field array for field with generic signature attribute. Reviewed-by: coleenp, dlong
author jiangli
date Mon, 21 May 2012 14:10:35 -0400
parents c18cbe5936b8
children da91efe96a93
comparison
equal deleted inserted replaced
6069:03d61caacd1e 6100:71afdabfd05b
79 public boolean hasLocalVariableTable() { return (flags & JVM_ACC_HAS_LOCAL_VARIABLE_TABLE ) != 0; } 79 public boolean hasLocalVariableTable() { return (flags & JVM_ACC_HAS_LOCAL_VARIABLE_TABLE ) != 0; }
80 80
81 // field flags 81 // field flags
82 public boolean fieldAccessWatched () { return (flags & JVM_ACC_FIELD_ACCESS_WATCHED) != 0; } 82 public boolean fieldAccessWatched () { return (flags & JVM_ACC_FIELD_ACCESS_WATCHED) != 0; }
83 public boolean fieldModificationWatched() { return (flags & JVM_ACC_FIELD_MODIFICATION_WATCHED) != 0; } 83 public boolean fieldModificationWatched() { return (flags & JVM_ACC_FIELD_MODIFICATION_WATCHED) != 0; }
84 public boolean fieldHasGenericSignature() { return (flags & JVM_ACC_FIELD_HAS_GENERIC_SIGNATURE)!= 0; }
84 85
85 public void printOn(PrintStream tty) { 86 public void printOn(PrintStream tty) {
86 // prints only .class flags and not the hotspot internal flags 87 // prints only .class flags and not the hotspot internal flags
87 if (isPublic ()) tty.print("public " ); 88 if (isPublic ()) tty.print("public " );
88 if (isPrivate ()) tty.print("private " ); 89 if (isPrivate ()) tty.print("private " );