pan3793 commented on code in PR #52956:
URL: https://github.com/apache/spark/pull/52956#discussion_r2510303745
##########
common/utils/src/main/scala/org/apache/spark/util/ClosureCleaner.scala:
##########
@@ -596,6 +611,173 @@ private[spark] object ClosureCleaner extends Logging {
}
obj
}
+
+ def convertIndyLambdaForJava22[F <: AnyRef](
+ indyLambda: F,
+ outerThis: AnyRef,
+ lambdaProxy: SerializedLambda): Option[F] = {
+ if (Runtime.version().feature() >= 22) {
Review Comment:
if this change targets 4.2, maybe you can aggressively make it apply to Java
18+ so that it can get more chances to be tested by the community, and for
safety, have an internal config to allow switching back to the original
approach if something goes wrong.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]