< prev index next >

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

Print this page

 56      * Gets the host architecture name for the purpose of finding the corresponding
 57      * {@linkplain HotSpotJVMCIBackendFactory backend}.
 58      */
 59     String getHostArchitectureName() {
 60         String arch = Services.getSavedProperty("os.arch");
 61         switch (arch) {
 62             case "x86_64":
 63                 return "amd64";
 64 
 65             default:
 66                 return arch;
 67         }
 68     }
 69 
 70     final boolean useDeferredInitBarriers = getFlag("ReduceInitialCardMarks", Boolean.class);
 71 
 72     final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
 73 
 74     final int objectAlignment = getFlag("ObjectAlignmentInBytes", Integer.class);
 75 
 76     final int hubOffset = getFieldOffset("oopDesc::_metadata._klass", Integer.class, "Klass*");

 77 
 78     final int subklassOffset = getFieldOffset("Klass::_subklass", Integer.class, "Klass*");
 79     final int superOffset = getFieldOffset("Klass::_super", Integer.class, "Klass*");
 80     final int nextSiblingOffset = getFieldOffset("Klass::_next_sibling", Integer.class, "Klass*");
 81     final int superCheckOffsetOffset = getFieldOffset("Klass::_super_check_offset", Integer.class, "juint");
 82     final int secondarySuperCacheOffset = getFieldOffset("Klass::_secondary_super_cache", Integer.class, "Klass*");
 83 
 84     final int classLoaderDataOffset = getFieldOffset("Klass::_class_loader_data", Integer.class, "ClassLoaderData*");
 85 
 86     /**
 87      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
 88      */
 89     final int javaMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
 90 
 91     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
 92     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
 93 
 94     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
 95     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
 96 

 56      * Gets the host architecture name for the purpose of finding the corresponding
 57      * {@linkplain HotSpotJVMCIBackendFactory backend}.
 58      */
 59     String getHostArchitectureName() {
 60         String arch = Services.getSavedProperty("os.arch");
 61         switch (arch) {
 62             case "x86_64":
 63                 return "amd64";
 64 
 65             default:
 66                 return arch;
 67         }
 68     }
 69 
 70     final boolean useDeferredInitBarriers = getFlag("ReduceInitialCardMarks", Boolean.class);
 71 
 72     final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
 73 
 74     final int objectAlignment = getFlag("ObjectAlignmentInBytes", Integer.class);
 75 
 76     // TODO: Lilliput. Probably ok.
 77     final int hubOffset = 4; // getFieldOffset("oopDesc::_metadata._klass", Integer.class, "Klass*");
 78 
 79     final int subklassOffset = getFieldOffset("Klass::_subklass", Integer.class, "Klass*");
 80     final int superOffset = getFieldOffset("Klass::_super", Integer.class, "Klass*");
 81     final int nextSiblingOffset = getFieldOffset("Klass::_next_sibling", Integer.class, "Klass*");
 82     final int superCheckOffsetOffset = getFieldOffset("Klass::_super_check_offset", Integer.class, "juint");
 83     final int secondarySuperCacheOffset = getFieldOffset("Klass::_secondary_super_cache", Integer.class, "Klass*");
 84 
 85     final int classLoaderDataOffset = getFieldOffset("Klass::_class_loader_data", Integer.class, "ClassLoaderData*");
 86 
 87     /**
 88      * The offset of the _java_mirror field (of type {@link Class}) in a Klass.
 89      */
 90     final int javaMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "OopHandle");
 91 
 92     final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags");
 93     final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint");
 94 
 95     final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class);
 96     final int klassLayoutHelperInstanceSlowPathBit = getConstant("Klass::_lh_instance_slow_path_bit", Integer.class);
 97 
< prev index next >