private static String getBundledLibraryPath() { if (!isUnixFamily()) { throw new IllegalStateException("ICMP not supported in this platform: " + OS); } return is32bitJVM() ? "lib/linux-x86/libicmp_helper.so" : "lib/linux-x86_64/libicmp_helper.so"; } }
static boolean isCompressedOops() { // check HotSpot JVM implementation Boolean enabled = isHotSpotCompressedOopsOrNull(); if (enabled != null) { return enabled; } // fallback check for other JVM implementations enabled = isObjectLayoutCompressedOopsOrNull(); if (enabled != null) { return enabled; } // accept compressed oops is used by default getLogger(JVMUtil.class).info("Could not determine memory cost of reference; setting to default of 4 bytes."); return true; }
static boolean isCompressedOops() { // check HotSpot JVM implementation Boolean enabled = isHotSpotCompressedOopsOrNull(); if (enabled != null) { return enabled; } // fallback check for other JVM implementations enabled = isObjectLayoutCompressedOopsOrNull(); if (enabled != null) { return enabled; } // accept compressed oops is used by default getLogger(JVMUtil.class).info("Could not determine memory cost of reference; setting to default of 4 bytes."); return true; }
private static String getBundledLibraryPath() { if (!isUnixFamily()) { throw new IllegalStateException("ICMP not supported in this platform: " + OS); } return is32bitJVM() ? "lib/linux-x86/libicmp_helper.so" : "lib/linux-x86_64/libicmp_helper.so"; } }