APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.gc.serial

public abstract Class Generation

extends VMObject
Class Inheritance
Known Direct Subclasses
sun.jvm.hotspot.gc.serial.TenuredGeneration, sun.jvm.hotspot.gc.serial.DefNewGeneration
Imports
java.io.*, java.util.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.gc.shared.*, sun.jvm.hotspot.memory.*, sun.jvm.hotspot.runtime.*, sun.jvm.hotspot.types.*, sun.jvm.hotspot.utilities.Observable, .Observer

The (supported) Generation hierarchy currently looks like this:

Field Summary

Modifier and TypeField and Description
protected static final int
K

private static long
private static long
Inherited from sun.jvm.hotspot.runtime.VMObject:
addr

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract long
capacity()

The maximum number of object bytes the generation can currently hold.

public abstract long
contiguousAvailable()

The largest number of contiguous free words in the generation, including expansion.

public abstract long
free()

The number of free bytes in the gen.

private static synchronized void
public boolean
isInReserved(Address p)

Returns "TRUE" iff "p" points into the reserved area of the generation.

public abstract void
liveRegionsIterate(LiveRegionsClosure closure)

Iteration - do not use for time critical operations

public abstract String
name()

public abstract void
public MemRegion
public abstract long
used()

The number of used bytes in the gen.

public MemRegion
usedRegion()

Returns a region guaranteed to contain all the objects in the generation.

protected VirtualSpace
Inherited from sun.jvm.hotspot.runtime.VMObject:
equalsgetAddresshashCodetoString

Field Detail

Kback to summary
protected static final int K
reservedFieldOffsetback to summary
private static long reservedFieldOffset
virtualSpaceFieldOffsetback to summary
private static long virtualSpaceFieldOffset

Constructor Detail

Generationback to summary
public Generation(Address addr)

Method Detail

capacityback to summary
public abstract long capacity()

The maximum number of object bytes the generation can currently hold.

contiguousAvailableback to summary
public abstract long contiguousAvailable()

The largest number of contiguous free words in the generation, including expansion. (VM's version assumes it is called at a safepoint.)

freeback to summary
public abstract long free()

The number of free bytes in the gen.

initializeback to summary
private static synchronized void initialize(TypeDataBase db)
isInReservedback to summary
public boolean isInReserved(Address p)

Returns "TRUE" iff "p" points into the reserved area of the generation.

liveRegionsIterateback to summary
public abstract void liveRegionsIterate(LiveRegionsClosure closure)

Iteration - do not use for time critical operations

nameback to summary
public abstract String name()
printOnback to summary
public abstract void printOn(PrintStream tty)
reservedback to summary
public MemRegion reserved()
usedback to summary
public abstract long used()

The number of used bytes in the gen.

usedRegionback to summary
public MemRegion usedRegion()

Returns a region guaranteed to contain all the objects in the generation.

virtualSpaceback to summary
protected VirtualSpace virtualSpace()