MemoryPool¶
MemoryPool
is an abstraction of memory pools.
Contract¶
Size of Memory Used¶
memoryUsed: Long
Used when:
MemoryPool
is requested for the amount of free memory and decrementPoolSize
Implementations¶
Creating Instance¶
MemoryPool
takes the following to be created:
- Lock Object
Abstract Class
MemoryPool
is an abstract class and cannot be created directly. It is created indirectly for the concrete MemoryPools.
Free Memory¶
memoryFree
memoryFree
...FIXME
memoryFree
is used when:
ExecutionMemoryPool
is requested to acquireMemoryStorageMemoryPool
is requested to acquireMemory and freeSpaceToShrinkPoolUnifiedMemoryManager
is requested to acquire execution and storage memory
decrementPoolSize¶
decrementPoolSize(
delta: Long): Unit
decrementPoolSize
...FIXME
decrementPoolSize
is used when:
UnifiedMemoryManager
is requested to acquireExecutionMemory and acquireStorageMemory