|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.policy.Space org.mmtk.policy.RawPageSpace
public final class RawPageSpace
Each instance of this class corresponds to one raw page space.
This class provides access to raw memory for managing internal meta data.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.mmtk.policy.Space |
---|
Space.SpaceVisitor |
Field Summary |
---|
Fields inherited from class org.mmtk.policy.Space |
---|
AVAILABLE_BYTES, AVAILABLE_END, AVAILABLE_PAGES, AVAILABLE_START, BYTES_IN_CHUNK, contiguous, descriptor, extent, headDiscontiguousRegion, HEAP_END, HEAP_START, immortal, LOG_ADDRESS_SPACE, LOG_BYTES_IN_CHUNK, MAX_CHUNKS, MAX_SPACES, movable, PAGES_IN_CHUNK, pr, start, zeroed |
Constructor Summary | |
---|---|
RawPageSpace(String name,
VMRequest vmRequest)
The caller specifies the region of virtual memory to be used for this space. |
Method Summary | |
---|---|
boolean |
isLive(ObjectReference object)
Is the object in this space alive? |
void |
prepare()
|
void |
release()
|
void |
release(Address first)
Release a group of pages that were allocated together. |
ObjectReference |
traceObject(TransitiveClosure trace,
ObjectReference object)
Trace an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawPageSpace(String name, VMRequest vmRequest)
name
- The name of this space (used when printing error messages etc)vmRequest
- An object describing the virtual memory requested.Method Detail |
---|
public void prepare()
public void release()
public void release(Address first)
release
in class Space
first
- The first page in the group of pages that were
allocated together.public ObjectReference traceObject(TransitiveClosure trace, ObjectReference object)
This makes no sense for a raw page space and should never be called.
traceObject
in class Space
object
- The object to be traced.trace
- The trace being conducted.
zero
: calling this is an error.public boolean isLive(ObjectReference object)
Space
isLive
in class Space
object
- The object reference.
true
if the object is live.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |