@@ -1228,18 +1228,6 @@ private static LambdaClassNameAndBytecode getLambdaClassNameAndBytecodeFromThrea
1228
1228
return emptyLambdaClassNameAndBytecode ;
1229
1229
}
1230
1230
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
-
1243
1231
/**
1244
1232
* This method should be intercepted on JDK 24 or later when we are predefining a lambda class.
1245
1233
* 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
1954
1942
};
1955
1943
1956
1944
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 ),
1959
1945
optionalBrk ("java/lang/invoke/MethodHandles$Lookup" , "makeHiddenClassDefiner" ,
1960
1946
"(Ljava/lang/String;[BZLjdk/internal/util/ClassFileDumper;I)Ljava/lang/invoke/MethodHandles$Lookup$ClassDefiner;" , BreakpointInterceptor ::makeHiddenClassDefiner )
1961
1947
};
0 commit comments