public abstract class Generation extends VMObject
The (supported) Generation hierarchy currently looks like this:
Modifier and Type | Class and Description |
---|---|
static class |
Generation.Name |
static class |
Generation.StatRecord |
Modifier and Type | Field and Description |
---|---|
protected static int |
K |
Constructor and Description |
---|
Generation(Address addr) |
Modifier and Type | Method and Description |
---|---|
abstract long |
capacity()
The maximum number of object bytes the generation can currently
hold.
|
abstract long |
contiguousAvailable()
The largest number of contiguous free words in the generation,
including expansion.
|
abstract long |
free()
The number of free bytes in the gen.
|
int |
invocations() |
boolean |
isIn(Address p) |
boolean |
isInReserved(Address p)
Returns "TRUE" iff "p" points into the reserved area of the
generation.
|
Generation.Name |
kind() |
int |
level() |
abstract java.lang.String |
name() |
void |
print() |
abstract void |
printOn(java.io.PrintStream tty) |
MemRegion |
reserved() |
void |
spaceIterate(SpaceClosure blk)
Equivalent to spaceIterate(blk, false)
|
abstract void |
spaceIterate(SpaceClosure blk,
boolean usedOnly)
Iteration - do not use for time critical operations
|
GenerationSpec |
spec() |
abstract long |
used()
The number of used bytes in the gen.
|
MemRegion |
usedRegion()
Returns a region guaranteed to contain all the objects in the
generation.
|
protected VirtualSpace |
virtualSpace() |
equals, getAddress, hashCode, toString
protected static final int K
public Generation(Address addr)
public Generation.Name kind()
public GenerationSpec spec()
public int level()
public int invocations()
public abstract long capacity()
public abstract long used()
public abstract long free()
public abstract long contiguousAvailable()
public MemRegion reserved()
public MemRegion usedRegion()
public boolean isIn(Address p)
public boolean isInReserved(Address p)
protected VirtualSpace virtualSpace()
public abstract java.lang.String name()
public void spaceIterate(SpaceClosure blk)
public abstract void spaceIterate(SpaceClosure blk, boolean usedOnly)
public void print()
public abstract void printOn(java.io.PrintStream tty)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.