|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.utility.heap.VMRequest
public final class VMRequest
This class manages the encoding and decoding of virtual memory requests.
By encapsulating this aspect of the construction of a space, we greatly reduce the number of constructors required.
Field Summary | |
---|---|
Extent |
extent
|
float |
frac
|
static int |
REQUEST_DISCONTIGUOUS
|
static int |
REQUEST_EXTENT
|
static int |
REQUEST_FIXED
|
static int |
REQUEST_FRACTION
|
Address |
start
|
boolean |
top
|
int |
type
|
Constructor Summary | |
---|---|
private |
VMRequest(int type,
Address start,
Extent bytes,
float frac,
boolean top)
|
Method Summary | |
---|---|
static VMRequest |
create()
A request for a discontiguous region of memory |
static VMRequest |
create(Address start,
Extent extent)
A request for an explicit region of memory |
static VMRequest |
create(Extent extent,
boolean top)
A request for a number of bytes of memory, optionally requesting the highest available. |
static VMRequest |
create(float frac)
A request for a fraction of available memory |
static VMRequest |
create(float frac,
boolean top)
A request for a fraction of available memory, optionally requesting the highest available. |
static VMRequest |
create(int mb)
A request for a number of megabytes of memory |
static VMRequest |
create(int mb,
boolean top)
A request for a number of megabytes of memory, optionally requesting the highest available. |
boolean |
isDiscontiguous()
Is this a discontiguous space request? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REQUEST_DISCONTIGUOUS
public static final int REQUEST_FIXED
public static final int REQUEST_EXTENT
public static final int REQUEST_FRACTION
public final int type
public final Address start
public final Extent extent
public final float frac
public final boolean top
Constructor Detail |
---|
private VMRequest(int type, Address start, Extent bytes, float frac, boolean top)
Method Detail |
---|
public boolean isDiscontiguous()
public static VMRequest create()
public static VMRequest create(Address start, Extent extent)
start
- The start of the regionextent
- The size of the region
public static VMRequest create(int mb)
mb
- The number of megabytes
public static VMRequest create(float frac)
frac
- The fraction
public static VMRequest create(int mb, boolean top)
mb
- The number of megabytestop
- True to request high memory
public static VMRequest create(float frac, boolean top)
frac
- The fractiontop
- True to request high memory
public static VMRequest create(Extent extent, boolean top)
extent
- The number of bytestop
- True to request high memory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |