Skip to content
Snippets Groups Projects
Commit 3c7bac61 authored by jloew2's avatar jloew2
Browse files

Merge branch 'evict-by-size' of gitlab.engr.illinois.edu:cs525-sp18-g07/spark into evict-by-size

parents 5bc0e869 fa28d6f8
No related branches found
No related tags found
No related merge requests found
......@@ -409,15 +409,19 @@ private[spark] class MemoryStore(
entries.remove(blockId)
}
if (entry != null) {
print("412\n")
entry match {
case SerializedMemoryEntry(buffer, _, _) => buffer.dispose()
case _ =>
case SerializedMemoryEntry(buffer, _, _) => print("414\n"); buffer.dispose()
case _ => print("415\n")
}
print("417\n")
memoryManager.releaseStorageMemory(entry.size, entry.memoryMode)
print("419\n")
logInfo(s"Block $blockId of size ${entry.size} dropped " +
s"from memory (free ${maxMemory - blocksMemoryUsed})")
true
} else {
print("424\n")
false
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment