Skip to content

Commit 743ef16

Browse files
committed
update comments
1 parent d1ed4e4 commit 743ef16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/util/collection/Spillable.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ private[spark] abstract class Spillable[C](taskMemoryManager: TaskMemoryManager)
5858
SparkEnv.get.conf.getLong("spark.shuffle.spill.numElementsForceSpillThreshold", Long.MaxValue)
5959

6060
// Threshold for this collection's size in bytes before we start tracking its memory usage
61+
// To avoid memory leak for rdd.first(), initialize this to a value orders of magnitude > 0
6162
private[this] var myMemoryThreshold = initialMemoryThreshold
6263

6364
// Number of elements read from input since last spill

0 commit comments

Comments
 (0)