< prev index next > src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java
Print this page
if (symbolicRefClass == definingClass) return true;
if (symbolicRef.isStatic() || symbolicRef.isPrivate()) return false;
return (definingClass.isAssignableFrom(symbolicRefClass) || // Msym overrides Mdef
symbolicRefClass.isInterface()); // Mdef implements Msym
}
-
- //--- AOTCache support
-
- /**
- * In normal execution, this is set to true, so that LambdaFormEditor and MethodTypeForm will
- * use soft references to allow class unloading.
- *
- * When dumping the AOTCache, this is set to false so that no cached heap objects will
- * contain soft references (which are not yet supported by AOTCache - see JDK-8341587). AOTCache
- * only stores LambdaFormEditors and MethodTypeForms for classes in the boot/platform/app loaders.
- * Such classes will never be unloaded, so it's OK to use hard references.
- */
- static final boolean USE_SOFT_CACHE;
-
- static {
- USE_SOFT_CACHE = Boolean.parseBoolean(
- System.getProperty("java.lang.invoke.MethodHandleNatives.USE_SOFT_CACHE", "true"));
- }
}
< prev index next >