< prev index next >

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

Print this page




  51      * Gets the host architecture name for the purpose of finding the corresponding
  52      * {@linkplain HotSpotJVMCIBackendFactory backend}.
  53      */
  54     String getHostArchitectureName() {
  55         String arch = System.getProperty("os.arch");
  56         switch (arch) {
  57             case "x86_64":
  58                 return "amd64";
  59 
  60             case "sparcv9":
  61                 return "sparc";
  62             default:
  63                 return arch;
  64         }
  65     }
  66 
  67     final boolean useDeferredInitBarriers = getFlag("ReduceInitialCardMarks", Boolean.class);
  68 
  69     final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
  70 


  71     final int prototypeMarkWordOffset = getFieldOffset("Klass::_prototype_header", Integer.class, "markOop");
  72     final int subklassOffset = getFieldOffset("Klass::_subklass", Integer.class, "Klass*");
  73     final int nextSiblingOffset = getFieldOffset("Klass::_next_sibling", Integer.class, "Klass*");
  74     final int superCheckOffsetOffset = getFieldOffset("Klass::_super_check_offset", Integer.class, "juint");
  75     final int secondarySuperCacheOffset = getFieldOffset("Klass::_secondary_super_cache", Integer.class, "Klass*");
  76 
  77     /**
  78      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
  79      */
  80     final int classMirrorHandleOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
  81 
  82     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
  83     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
  84 
  85     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
  86     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
  87 
  88     final int vtableEntrySize = getFieldValue("CompilerToVM::Data::sizeof_vtableEntry", Integer.class, "int");
  89     final int vtableEntryMethodOffset = getFieldOffset("vtableEntry::_method", Integer.class, "Method*");
  90 




  51      * Gets the host architecture name for the purpose of finding the corresponding
  52      * {@linkplain HotSpotJVMCIBackendFactory backend}.
  53      */
  54     String getHostArchitectureName() {
  55         String arch = System.getProperty("os.arch");
  56         switch (arch) {
  57             case "x86_64":
  58                 return "amd64";
  59 
  60             case "sparcv9":
  61                 return "sparc";
  62             default:
  63                 return arch;
  64         }
  65     }
  66 
  67     final boolean useDeferredInitBarriers = getFlag("ReduceInitialCardMarks", Boolean.class);
  68 
  69     final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
  70 
  71     final int objectAlignment = getFlag("ObjectAlignmentInBytes", Integer.class);
  72 
  73     final int prototypeMarkWordOffset = getFieldOffset("Klass::_prototype_header", Integer.class, "markOop");
  74     final int subklassOffset = getFieldOffset("Klass::_subklass", Integer.class, "Klass*");
  75     final int nextSiblingOffset = getFieldOffset("Klass::_next_sibling", Integer.class, "Klass*");
  76     final int superCheckOffsetOffset = getFieldOffset("Klass::_super_check_offset", Integer.class, "juint");
  77     final int secondarySuperCacheOffset = getFieldOffset("Klass::_secondary_super_cache", Integer.class, "Klass*");
  78 
  79     /**
  80      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
  81      */
  82     final int classMirrorHandleOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
  83 
  84     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
  85     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
  86 
  87     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
  88     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
  89 
  90     final int vtableEntrySize = getFieldValue("CompilerToVM::Data::sizeof_vtableEntry", Integer.class, "int");
  91     final int vtableEntryMethodOffset = getFieldOffset("vtableEntry::_method", Integer.class, "Method*");
  92 


< prev index next >