jeco.dmm.sim2.lib.allocator
Class Kingsley

java.lang.Object
  extended by jeco.dmm.sim2.lib.allocator.Allocator
      extended by jeco.dmm.sim2.lib.allocator.SegregatedFreeList
          extended by jeco.dmm.sim2.lib.allocator.SegregatedFit
              extended by jeco.dmm.sim2.lib.allocator.StrictSegregatedFit
                  extended by jeco.dmm.sim2.lib.allocator.Kingsley

public class Kingsley
extends StrictSegregatedFit

Author:
jlrisco

Field Summary
 
Fields inherited from class jeco.dmm.sim2.lib.allocator.Allocator
allowCoalescing, allowSplitting, freeLists, maxSizeInB, metrics, minSizeInB
 
Constructor Summary
Kingsley()
           
Kingsley(FreeList.ALLOCATION_MECHANISM allocationMechanism)
           
 
Method Summary
 Block coalesce(long sizeInB)
           
 int computeFreeListIndex(long sizeInB)
           
 Block split(long sizeInB)
           
 
Methods inherited from class jeco.dmm.sim2.lib.allocator.StrictSegregatedFit
malloc
 
Methods inherited from class jeco.dmm.sim2.lib.allocator.SegregatedFreeList
setup
 
Methods inherited from class jeco.dmm.sim2.lib.allocator.Allocator
add, canManage, getFreeLists, getMaxSizeInB, getMinSizeInB, isAllowCoalescing, isAllowSplitting, setMaxSizeInB, setMetrics, setMinSizeInB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Kingsley

public Kingsley(FreeList.ALLOCATION_MECHANISM allocationMechanism)

Kingsley

public Kingsley()
Method Detail

computeFreeListIndex

public int computeFreeListIndex(long sizeInB)
Specified by:
computeFreeListIndex in class StrictSegregatedFit

coalesce

public Block coalesce(long sizeInB)
Specified by:
coalesce in class StrictSegregatedFit

split

public Block split(long sizeInB)
Specified by:
split in class StrictSegregatedFit