public class ObjectHeap
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ObjectHeap.ObjectFilter
an interface to filter objects while walking heap
|
Constructor and Description |
---|
ObjectHeap(TypeDataBase db) |
Modifier and Type | Method and Description |
---|---|
boolean |
equal(Oop o1,
Oop o2)
Comparison operation for oops, either or both of which may be null
|
TypeArrayKlass |
getBoolArrayKlassObj() |
long |
getBooleanSize() |
TypeArrayKlass |
getByteArrayKlassObj() |
long |
getByteSize() |
TypeArrayKlass |
getCharArrayKlassObj() |
long |
getCharSize() |
TypeArrayKlass |
getDoubleArrayKlassObj() |
long |
getDoubleSize() |
long |
getFloatSize() |
TypeArrayKlass |
getIntArrayKlassObj() |
long |
getIntSize() |
TypeArrayKlass |
getLongArrayKlassObj() |
long |
getLongSize() |
long |
getOopSize() |
TypeArrayKlass |
getShortArrayKlassObj() |
long |
getShortSize() |
TypeArrayKlass |
getSingleArrayKlassObj() |
void |
initialize(TypeDataBase db) |
boolean |
isValidMethod(Address handle) |
void |
iterate(HeapVisitor visitor)
The base heap iteration mechanism
|
void |
iterate(HeapVisitor visitor,
ObjectHeap.ObjectFilter of)
iterate objects satisfying a specified ObjectFilter
|
void |
iterateObjectsOfKlass(HeapVisitor visitor,
Klass k)
iterate objects of given Klass (objects of subtypes included)
|
void |
iterateObjectsOfKlass(HeapVisitor visitor,
Klass k,
boolean includeSubtypes)
iterate objects of given Klass.
|
void |
iterateRaw(RawHeapVisitor visitor)
This routine can be used to iterate through the heap at an
extremely low level (stepping word-by-word) to provide the
ability to do very low-level debugging
|
Oop |
newOop(OopHandle handle) |
void |
print() |
Klass |
typeArrayKlassObj(int t)
Takes a BasicType and returns the corresponding primitive array
klass
|
public ObjectHeap(TypeDataBase db) throws WrongTypeException
WrongTypeException
public void initialize(TypeDataBase db) throws WrongTypeException
WrongTypeException
public boolean equal(Oop o1, Oop o2)
public long getOopSize()
public long getByteSize()
public long getCharSize()
public long getBooleanSize()
public long getIntSize()
public long getShortSize()
public long getLongSize()
public long getFloatSize()
public long getDoubleSize()
public TypeArrayKlass getBoolArrayKlassObj()
public TypeArrayKlass getByteArrayKlassObj()
public TypeArrayKlass getCharArrayKlassObj()
public TypeArrayKlass getIntArrayKlassObj()
public TypeArrayKlass getShortArrayKlassObj()
public TypeArrayKlass getLongArrayKlassObj()
public TypeArrayKlass getSingleArrayKlassObj()
public TypeArrayKlass getDoubleArrayKlassObj()
public Klass typeArrayKlassObj(int t)
public void iterate(HeapVisitor visitor)
public void iterate(HeapVisitor visitor, ObjectHeap.ObjectFilter of)
public void iterateObjectsOfKlass(HeapVisitor visitor, Klass k, boolean includeSubtypes)
public void iterateObjectsOfKlass(HeapVisitor visitor, Klass k)
public void iterateRaw(RawHeapVisitor visitor)
public boolean isValidMethod(Address handle)
public void print()
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.