org.mmtk.plan.concurrent.marksweep
Class CMSConstraints

java.lang.Object
  extended by org.mmtk.plan.PlanConstraints
      extended by org.mmtk.plan.SimpleConstraints
          extended by org.mmtk.plan.concurrent.ConcurrentConstraints
              extended by org.mmtk.plan.concurrent.marksweep.CMSConstraints

public class CMSConstraints
extends ConcurrentConstraints

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

Constructor Detail

CMSConstraints

public CMSConstraints()
Method Detail

gcHeaderBits

public int gcHeaderBits()
Specified by:
gcHeaderBits in class PlanConstraints
Returns:
The number of header bits that are required.

gcHeaderWords

public int gcHeaderWords()
Specified by:
gcHeaderWords in class PlanConstraints
Returns:
The number of header words that are required.

maxNonLOSDefaultAllocBytes

public int maxNonLOSDefaultAllocBytes()
Overrides:
maxNonLOSDefaultAllocBytes in class PlanConstraints
Returns:
Size (in bytes) beyond which new regular objects must be allocated to the LOS