Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
private |
VMRequest(int type,
Address start,
Extent bytes,
float frac,
boolean top) |
Modifier and Type | Method and Description |
---|---|
static VMRequest |
discontiguous()
A request for a discontiguous region of memory
|
static VMRequest |
fixed(Address start,
Extent extent)
A request for an explicit region of memory
|
static VMRequest |
fixedExtent(Extent extent,
boolean top)
A request for a number of bytes of memory, optionally requesting the highest available.
|
static VMRequest |
fixedSize(int mb)
A request for a number of megabytes of memory
|
static VMRequest |
fraction(float frac)
A request for a fraction of available memory
|
static VMRequest |
highFixedSize(int mb)
A request for a number of megabytes of memory at the highest available addresses
|
static VMRequest |
highFraction(float frac)
A request for a fraction of available memory, optionally requesting the highest available.
|
boolean |
isDiscontiguous()
Is this a discontiguous space request?
|
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 float frac
public final boolean top
public boolean isDiscontiguous()
public static VMRequest discontiguous()
public static VMRequest fixed(Address start, Extent extent)
start
- The start of the regionextent
- The size of the regionpublic static VMRequest fixedSize(int mb)
mb
- The number of megabytespublic static VMRequest fraction(float frac)
frac
- The fractionpublic static VMRequest highFixedSize(int mb)
mb
- The number of megabytespublic static VMRequest highFraction(float frac)
frac
- The fractionpublic static VMRequest fixedExtent(Extent extent, boolean top)
extent
- The number of bytestop
- True to request high memory