public interface PageSource
| Modifier and Type | Method and Description |
|---|---|
Page |
allocate(int size,
boolean thief,
boolean victim,
OffHeapStorageArea owner)
Attempt to allocate a page of the given size.
|
void |
free(Page page) |
Page allocate(int size, boolean thief, boolean victim, OffHeapStorageArea owner)
Allocations identified as thieves will if necessary 'steal' space from
previous allocations identified as 'victims' in order to fulfill the
allocation request. owner is the area from which the
returned page can subsequently be stolen or recovered. This is most likely
to be the calling instance.
size - size of page to allocatethief - true if the allocation can steal space from victimsvictim - true if the allocated page should be eligible for stealingowner - owner from which subsequent steal should occurnull in the case of failurevoid free(Page page)
Copyright © 2015–2024. All rights reserved.