Description
JVMObjectTracker.objMap is used to track JVM objects for SparkR. However, we observed that JVM objects that are not used anymore are still trapped in this map, which prevents those object get GCed.
Seems it makes sense to use weak reference (like persistentRdds in SparkContext).
Attachments
Attachments
Issue Links
- contains
-
SPARK-17823 Make JVMObjectTracker.objMap thread-safe
- Resolved
- is related to
-
SPARK-17823 Make JVMObjectTracker.objMap thread-safe
- Resolved
- links to