File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1115,6 +1115,14 @@ private int completeImageBuild() {
11151115 // The following two are for backwards compatibility reasons. They should be removed.
11161116 imageBuilderJavaArgs .add ("-Djdk.internal.lambda.eagerlyInitialize=false" );
11171117 imageBuilderJavaArgs .add ("-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false" );
1118+ /*
1119+ * DONT_INLINE_THRESHOLD is used to set a profiling threshold for certain method handles and
1120+ * only allow inlining after n invocations. This is used for example in the implementation
1121+ * of record equals methods. We disable this behavior in the image builder because it can
1122+ * prevent optimizing the method handles for AOT compilation if the threshold is not
1123+ * reached.
1124+ */
1125+ imageBuilderJavaArgs .add ("-Djava.lang.invoke.MethodHandle.DONT_INLINE_THRESHOLD=-1" );
11181126
11191127 /* After JavaArgs consolidation add the user provided JavaArgs */
11201128 boolean afterOption = false ;
You can’t perform that action at this time.
0 commit comments