@@ -1228,18 +1228,6 @@ private static LambdaClassNameAndBytecode getLambdaClassNameAndBytecodeFromThrea
12281228 return emptyLambdaClassNameAndBytecode ;
12291229 }
12301230
1231- /**
1232- * This method should be intercepted before JDK 24 when we are predefining a lambda class. This
1233- * is the only spot in the lambda-class creation pipeline where we can get lambda-class bytecode
1234- * so the class can be predefined. We do not want to predefine all lambda classes, but only the
1235- * ones that are actually created at runtime, so we have a method that checks whether the lambda
1236- * should be predefined or not.
1237- */
1238- private static boolean onMethodHandleClassFileInit (JNIEnvironment jni , JNIObjectHandle thread , @ SuppressWarnings ("unused" ) Breakpoint bp , InterceptedState state ) {
1239- LambdaClassNameAndBytecode lambdaClassNameAndBytecode = getLambdaClassNameAndBytecodeFromThread (jni , thread , 3 );
1240- return lambdaPredefinition (state , lambdaClassNameAndBytecode .lambdaClassName (), lambdaClassNameAndBytecode .lambdaClassBytecode ());
1241- }
1242-
12431231 /**
12441232 * This method should be intercepted on JDK 24 or later when we are predefining a lambda class.
12451233 * We do not want to predefine all lambda classes, but only the ones that are actually created
@@ -1954,8 +1942,6 @@ private static boolean allocateInstance(JNIEnvironment jni, JNIObjectHandle thre
19541942 };
19551943
19561944 private static final BreakpointSpecification [] CLASS_PREDEFINITION_BREAKPOINT_SPECIFICATIONS = {
1957- optionalBrk ("java/lang/invoke/MethodHandles$Lookup$ClassFile" , "<init>" , "(Ljava/lang/String;I[B)V" ,
1958- BreakpointInterceptor ::onMethodHandleClassFileInit ),
19591945 optionalBrk ("java/lang/invoke/MethodHandles$Lookup" , "makeHiddenClassDefiner" ,
19601946 "(Ljava/lang/String;[BZLjdk/internal/util/ClassFileDumper;I)Ljava/lang/invoke/MethodHandles$Lookup$ClassDefiner;" , BreakpointInterceptor ::makeHiddenClassDefiner )
19611947 };
0 commit comments