sarutak commented on code in PR #52956:
URL: https://github.com/apache/spark/pull/52956#discussion_r2523910773


##########
common/utils/src/main/scala/org/apache/spark/util/ClosureCleaner.scala:
##########
@@ -596,6 +611,91 @@ private[spark] object ClosureCleaner extends Logging {
     }
     obj
   }
+
+  private def cloneIndyLambda[F <: AnyRef](
+      indyLambda: F,
+      outerThis: AnyRef,
+      lambdaProxy: SerializedLambda): Option[F] = {
+    val useClone = Option(
+      
System.getProperty("spark.closureCleaner.cloneIndyLambda")).getOrElse("true").toBoolean

Review Comment:
   There is no simple way to pass `SparkConf` to `ClosureCleaner` and I think 
having a new config in `internal/config/package.scala` is too much. So using 
`System.getProperty` here.



-- 
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]

Reply via email to