< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfig.java

Print this page
*** 71,11 ***
  
      final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
  
      final int objectAlignment = getFlag("ObjectAlignmentInBytes", Integer.class);
  
!     final int hubOffset = getFieldOffset("oopDesc::_metadata._klass", Integer.class, "Klass*");
  
      final int subklassOffset = getFieldOffset("Klass::_subklass", Integer.class, "Klass*");
      final int superOffset = getFieldOffset("Klass::_super", Integer.class, "Klass*");
      final int nextSiblingOffset = getFieldOffset("Klass::_next_sibling", Integer.class, "Klass*");
      final int superCheckOffsetOffset = getFieldOffset("Klass::_super_check_offset", Integer.class, "juint");
--- 71,12 ---
  
      final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
  
      final int objectAlignment = getFlag("ObjectAlignmentInBytes", Integer.class);
  
!     // TODO: Lilliput. Probably ok.
+     final int hubOffset = 4; // getFieldOffset("oopDesc::_metadata._klass", Integer.class, "Klass*");
  
      final int subklassOffset = getFieldOffset("Klass::_subklass", Integer.class, "Klass*");
      final int superOffset = getFieldOffset("Klass::_super", Integer.class, "Klass*");
      final int nextSiblingOffset = getFieldOffset("Klass::_next_sibling", Integer.class, "Klass*");
      final int superCheckOffsetOffset = getFieldOffset("Klass::_super_check_offset", Integer.class, "juint");
< prev index next >