< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandleStatics.java

Print this page
@@ -57,10 +57,11 @@
      static final boolean LOG_LF_COMPILATION_FAILURE;
      static final int DONT_INLINE_THRESHOLD;
      static final int PROFILE_LEVEL;
      static final boolean PROFILE_GWT;
      static final int CUSTOMIZE_THRESHOLD;
+     static final boolean NO_SOFT_CACHE; // Don't use SoftReference for some tables so that they can be archived by CDS
      static final boolean VAR_HANDLE_GUARDS;
      static final int MAX_ARITY;
      static final boolean VAR_HANDLE_IDENTITY_ADAPT;
      static final boolean VAR_HANDLE_SEGMENT_FORCE_EXACT;
      static final ClassFileDumper DUMP_CLASS_FILES;

@@ -86,10 +87,12 @@
                  props.getProperty("java.lang.invoke.MethodHandle.PROFILE_LEVEL", "0"));
          PROFILE_GWT = Boolean.parseBoolean(
                  props.getProperty("java.lang.invoke.MethodHandle.PROFILE_GWT", "true"));
          CUSTOMIZE_THRESHOLD = Integer.parseInt(
                  props.getProperty("java.lang.invoke.MethodHandle.CUSTOMIZE_THRESHOLD", "127"));
+         NO_SOFT_CACHE = Boolean.parseBoolean(
+                 props.getProperty("java.lang.invoke.MethodHandle.NO_SOFT_CACHE", "false"));
          VAR_HANDLE_GUARDS = Boolean.parseBoolean(
                  props.getProperty("java.lang.invoke.VarHandle.VAR_HANDLE_GUARDS", "true"));
          VAR_HANDLE_IDENTITY_ADAPT = Boolean.parseBoolean(
                  props.getProperty("java.lang.invoke.VarHandle.VAR_HANDLE_IDENTITY_ADAPT", "false"));
          VAR_HANDLE_SEGMENT_FORCE_EXACT = Boolean.parseBoolean(
< prev index next >