8190491: SA tests failed after 8189610 changes
Summary: Change maxLength to an IntField
Reviewed-by: hseigel, jiangli
--- 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) {