MemoryPool¶
MemoryPool is an abstraction of memory pools.
Contract¶
Size of Memory Used¶
memoryUsed: Long
Used when:
MemoryPoolis 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:
ExecutionMemoryPoolis requested to acquireMemoryStorageMemoryPoolis requested to acquireMemory and freeSpaceToShrinkPoolUnifiedMemoryManageris requested to acquire execution and storage memory
decrementPoolSize¶
decrementPoolSize(
delta: Long): Unit
decrementPoolSize...FIXME
decrementPoolSize is used when:
UnifiedMemoryManageris requested to acquireExecutionMemory and acquireStorageMemory