Skip to content

Commit

Permalink
Add back comment to code extracted into method
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesreiss committed Apr 30, 2015
1 parent 16797ea commit fa212c1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ private[spark] class MemoryStore(blockManager: BlockManager, maxMemory: Long)
space: Long): ResultWithDroppedBlocks = {
var droppedBlocks = Seq.empty[(BlockId, BlockStatus)]
var success = true
// Hold the accounting lock, in case another thread concurrently puts a block that
// takes up the unrolling space we just ensured here
accountingLock.synchronized {
if (!reserveUnrollMemoryForThisThread(space)) {
logInfo(s"Initial reserveUnrollMemoryForThisThread($space) failed")
Expand Down

0 comments on commit fa212c1

Please sign in to comment.