< prev index next >
src/java.base/share/classes/jdk/internal/misc/VM.java
Print this page
*** 122,136 ****
public static boolean isDirectMemoryPageAligned() {
return pageAlignDirectMemory;
}
/**
! * Returns true if the given class loader is in the system domain
! * in which all permissions are granted.
*/
public static boolean isSystemDomainLoader(ClassLoader loader) {
! return loader == null;
}
/**
* Returns the system property of the specified key saved at
* system initialization time. This method should only be used
--- 122,136 ----
public static boolean isDirectMemoryPageAligned() {
return pageAlignDirectMemory;
}
/**
! * Returns true if the given class loader is the bootstrap class loader
! * or the platform class loader.
*/
public static boolean isSystemDomainLoader(ClassLoader loader) {
! return loader == null || loader == ClassLoader.getPlatformClassLoader();
}
/**
* Returns the system property of the specified key saved at
* system initialization time. This method should only be used
< prev index next >