8190491: SA tests failed after 8189610 changes
authorcoleenp
Wed, 01 Nov 2017 19:43:13 -0400
changeset 47769 80ea7a4c6427
parent 47768 3d1d05c9b6cd
child 47770 32d741a2b271
8190491: SA tests failed after 8189610 changes Summary: Change maxLength to an IntField Reviewed-by: hseigel, jiangli
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) {