jeco.dmm.sim2.lib.allocator
Class StrictSegregatedFit
java.lang.Object
jeco.dmm.sim2.lib.allocator.Allocator
jeco.dmm.sim2.lib.allocator.SegregatedFreeList
jeco.dmm.sim2.lib.allocator.SegregatedFit
jeco.dmm.sim2.lib.allocator.StrictSegregatedFit
- Direct Known Subclasses:
- BuddySystem, Kingsley
public abstract class StrictSegregatedFit
- extends SegregatedFit
- Author:
- jlrisco
Constructor Summary |
StrictSegregatedFit(long minSizeInB,
long maxSizeInB,
boolean allowSplitting,
boolean allowCoalescing)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrictSegregatedFit
public StrictSegregatedFit(long minSizeInB,
long maxSizeInB,
boolean allowSplitting,
boolean allowCoalescing)
malloc
public Block malloc(long sizeInB,
Block hottest)
- Description copied from class:
SegregatedFreeList
- We just enter here if we are sure that this allocator is the correct one.
- Overrides:
malloc
in class SegregatedFreeList
- Parameters:
sizeInB
- Size in byteshottest
- For reliability purposes, the hottest block
- Returns:
- The block created
computeFreeListIndex
public abstract int computeFreeListIndex(long sizeInB)
coalesce
public abstract Block coalesce(long sizeInB)
split
public abstract Block split(long sizeInB)