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

public Class ContiguousSpace

extends VMObject
implements LiveRegionsProvider
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.gc.shared.LiveRegionsProvider
Known Direct Subclasses
sun.jvm.hotspot.gc.g1.G1HeapRegion
Imports
java.io.*, java.util.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.memory.*, sun.jvm.hotspot.runtime.*, sun.jvm.hotspot.types.*, sun.jvm.hotspot.utilities.Observable, .Observer

A ContiguousSpace describes a heap area.

Invariant: bottom() and end() are on page_size boundaries and:

bottom() <= top() <= end()

top() is inclusive and end() is exclusive.

Field Summary

Modifier and TypeField and Description
private static AddressField
private static AddressField
private static AddressField
Inherited from sun.jvm.hotspot.runtime.VMObject:
addr

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Address
public OopHandle
bottomAsOopHandle()

Support for iteration over heap -- not sure how this will interact with GC in reflective system, but necessary for the debugging mechanism

public long
capacity()

Returned value is in bytes

public boolean
contains(Address p)

Testers

public Address
end()

public long
free()

public List<MemRegion>
getLiveRegions()

Implements sun.jvm.hotspot.gc.shared.LiveRegionsProvider.getLiveRegions.

Returns regions of Space where live objects live

private static synchronized void
public OopHandle
nextOopHandle(OopHandle handle, long size)

Support for iteration over heap -- not sure how this will interact with GC in reflective system, but necessary for the debugging mechanism

public void
public Address
top()

public long
used()

public MemRegion
usedRegion()

In a contiguous space we have a more obvious bound on what parts contain objects.

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

Field Detail

bottomFieldback to summary
private static AddressField bottomField
endFieldback to summary
private static AddressField endField
topFieldback to summary
private static AddressField topField

Constructor Detail

ContiguousSpaceback to summary
public ContiguousSpace(Address addr)

Method Detail

bottomback to summary
public Address bottom()
bottomAsOopHandleback to summary
public OopHandle bottomAsOopHandle()

Support for iteration over heap -- not sure how this will interact with GC in reflective system, but necessary for the debugging mechanism

capacityback to summary
public long capacity()

Returned value is in bytes

containsback to summary
public boolean contains(Address p)

Testers

endback to summary
public Address end()
freeback to summary
public long free()
getLiveRegionsback to summary
public List<MemRegion> getLiveRegions()

Implements sun.jvm.hotspot.gc.shared.LiveRegionsProvider.getLiveRegions.

Returns regions of Space where live objects live

initializeback to summary
private static synchronized void initialize(TypeDataBase db)
nextOopHandleback to summary
public OopHandle nextOopHandle(OopHandle handle, long size)

Support for iteration over heap -- not sure how this will interact with GC in reflective system, but necessary for the debugging mechanism

printOnback to summary
public void printOn(PrintStream tty)
topback to summary
public Address top()
usedback to summary
public long used()
usedRegionback to summary
public MemRegion usedRegion()

In a contiguous space we have a more obvious bound on what parts contain objects.