org.mmtk.plan.refcount.generational
Class GenRCConstraints

java.lang.Object
  extended by org.mmtk.plan.PlanConstraints
      extended by org.mmtk.plan.SimpleConstraints
          extended by org.mmtk.plan.StopTheWorldConstraints
              extended by org.mmtk.plan.refcount.RCBaseConstraints
                  extended by org.mmtk.plan.refcount.generational.GenRCConstraints

public class GenRCConstraints
extends RCBaseConstraints

This class and its subclasses communicate to the host VM/Runtime any features of the selected plan that it needs to know. This is separate from the main Plan/PlanLocal class in order to bypass any issues with ordering of static initialization.


Constructor Summary
GenRCConstraints()
           
 
Method Summary
 boolean buildForGenRC()
           
 int maxNonLOSCopyBytes()
           
 boolean movesObjects()
           
 
Methods inherited from class org.mmtk.plan.refcount.RCBaseConstraints
gcHeaderBits, gcHeaderWords, maxNonLOSDefaultAllocBytes, needsObjectReferenceWriteBarrier, objectReferenceBulkCopySupported
 
Methods inherited from class org.mmtk.plan.PlanConstraints
addressBulkCopySupported, booleanBulkCopySupported, byteBulkCopySupported, charBulkCopySupported, doubleBulkCopySupported, extentBulkCopySupported, floatBulkCopySupported, generateGCTrace, generational, intBulkCopySupported, longBulkCopySupported, maxNonLOSNonMovingAllocBytes, needsAddressReadBarrier, needsAddressWriteBarrier, needsBooleanReadBarrier, needsBooleanWriteBarrier, needsByteReadBarrier, needsByteWriteBarrier, needsCharReadBarrier, needsCharWriteBarrier, needsConcurrentWorkers, needsDoubleReadBarrier, needsDoubleWriteBarrier, needsExtentReadBarrier, needsExtentWriteBarrier, needsFloatReadBarrier, needsFloatWriteBarrier, needsForwardAfterLiveness, needsIntReadBarrier, needsIntWriteBarrier, needsJavaLangReferenceReadBarrier, needsLinearScan, needsLogBitInHeader, needsLongReadBarrier, needsLongWriteBarrier, needsObjectReferenceNonHeapReadBarrier, needsObjectReferenceNonHeapWriteBarrier, needsObjectReferenceReadBarrier, needsOffsetReadBarrier, needsOffsetWriteBarrier, needsShortReadBarrier, needsShortWriteBarrier, needsWordReadBarrier, needsWordWriteBarrier, numSpecializedScans, offsetBulkCopySupported, shortBulkCopySupported, withGCspy, wordBulkCopySupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenRCConstraints

public GenRCConstraints()
Method Detail

movesObjects

public boolean movesObjects()
Overrides:
movesObjects in class PlanConstraints
Returns:
true if this Plan moves objects.

maxNonLOSCopyBytes

public int maxNonLOSCopyBytes()
Overrides:
maxNonLOSCopyBytes in class PlanConstraints
Returns:
Size (in bytes) beyond which copied objects must be copied to the LOS

buildForGenRC

public boolean buildForGenRC()
Overrides:
buildForGenRC in class RCBaseConstraints
Returns:
true if we are building for generational reference counting