< prev index next > src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/VM.java
Print this page
private static Type uint64tType;
private static CIntegerType boolType;
private Boolean sharingEnabled;
private Boolean compressedOopsEnabled;
private Boolean compressedKlassPointersEnabled;
+ private Boolean compactObjectHeadersEnabled;
// command line flags supplied to VM - see struct JVMFlag in jvmFlag.hpp
public static final class Flag {
private String type;
private String name;
(flag.getBool()? Boolean.TRUE: Boolean.FALSE);
}
return compressedKlassPointersEnabled.booleanValue();
}
+ public boolean isCompactObjectHeadersEnabled() {
+ if (compactObjectHeadersEnabled == null) {
+ Flag flag = getCommandLineFlag("UseCompactObjectHeaders");
+ compactObjectHeadersEnabled = (flag == null) ? Boolean.FALSE:
+ (flag.getBool()? Boolean.TRUE: Boolean.FALSE);
+ }
+ return compactObjectHeadersEnabled.booleanValue();
+ }
+
public int getObjectAlignmentInBytes() {
if (objectAlignmentInBytes == 0) {
Flag flag = getCommandLineFlag("ObjectAlignmentInBytes");
objectAlignmentInBytes = (flag == null) ? 8 : (int)flag.getInt();
}
< prev index next >