# HG changeset patch # User coleenp # Date 1509579793 14400 # Node ID 80ea7a4c64270fe073aca1af91c4b96df7cc9816 # Parent 3d1d05c9b6cdaeea3a171ee933087c46a63ac54f 8190491: SA tests failed after 8189610 changes Summary: Change maxLength to an IntField Reviewed-by: hseigel, jiangli diff -r 3d1d05c9b6cd -r 80ea7a4c6427 src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/TypeArrayKlass.java --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/TypeArrayKlass.java Wed Nov 01 12:56:48 2017 -0700 +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/TypeArrayKlass.java Wed Nov 01 19:43:13 2017 -0400 @@ -44,14 +44,14 @@ private static synchronized void initialize(TypeDataBase db) throws WrongTypeException { Type t = db.lookupType("TypeArrayKlass"); - maxLength = new CIntField(t.getCIntegerField("_max_length"), 0); + maxLength = new IntField(t.getJIntField("_max_length"), 0); } public TypeArrayKlass(Address addr) { super(addr); } - private static CIntField maxLength; + private static IntField maxLength; public long getMaxLength() { return maxLength.getValue(this); } @@ -98,7 +98,7 @@ public void iterateFields(MetadataVisitor visitor) { super.iterateFields(visitor); - visitor.doCInt(maxLength, true); + visitor.doInt(maxLength, true); } public Klass arrayKlassImpl(boolean orNull, int n) {