public abstract class OneContigSpaceCardGeneration extends CardGeneration
OneSpaceOldGeneration models a heap of old objects contained in a single contiguous space.
Garbage collection is performed using mark-compact.
Generation.Name, Generation.StatRecord
K
Constructor and Description |
---|
OneContigSpaceCardGeneration(Address addr) |
Modifier and Type | Method and Description |
---|---|
long |
capacity()
Space queries
|
long |
contiguousAvailable()
The largest number of contiguous free words in the generation,
including expansion.
|
long |
free()
The number of free bytes in the gen.
|
boolean |
isIn(Address p) |
void |
printOn(java.io.PrintStream tty) |
void |
spaceIterate(SpaceClosure blk,
boolean usedOnly)
Iteration - do not use for time critical operations
|
ContiguousSpace |
theSpace() |
long |
used()
The number of used bytes in the gen.
|
invocations, isInReserved, kind, level, name, print, reserved, spaceIterate, spec, usedRegion, virtualSpace
equals, getAddress, hashCode, toString
public OneContigSpaceCardGeneration(Address addr)
public ContiguousSpace theSpace()
public boolean isIn(Address p)
isIn
in class Generation
public long capacity()
capacity
in class Generation
public long used()
Generation
used
in class Generation
public long free()
Generation
free
in class Generation
public long contiguousAvailable()
Generation
contiguousAvailable
in class Generation
public void spaceIterate(SpaceClosure blk, boolean usedOnly)
Generation
spaceIterate
in class Generation
public void printOn(java.io.PrintStream tty)
printOn
in class Generation
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.