changeset 47831:80ea7a4c6427

8190491: SA tests failed after 8189610 changes Summary: Change maxLength to an IntField Reviewed-by: hseigel, jiangli
author coleenp
date Wed, 01 Nov 2017 19:43:13 -0400
parents 3d1d05c9b6cd
children 32d741a2b271
files src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/TypeArrayKlass.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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) {