com.jrockit.memleak
Interface IInstanceReferrers

All Known Implementing Classes:
InstanceReferrers

public interface IInstanceReferrers

Holds information about which instances that point to a certain object.

Author:
Markus Persson

Field Summary
static IInstanceReferrers[] EMPTY_ARRAY
          An empty IInstanceReferrers array.
 
Method Summary
 int getGlobalHandles()
          Returns the number of global handles that refer to this instance.
 IObjectInfo[] getInstances()
          Returns info about objects that refer to the instance.
 IStaticField[] getStaticFields()
          Returns an array of names of all classes which have static fields that refer to this instance
 IObjectInfo getTargetObjectInfo()
          Returns the object ID of the referree.
 IThreadRoot[] getThreadRoots()
          Returns the threadroots that refer to this instance.
 

Field Detail

EMPTY_ARRAY

static final IInstanceReferrers[] EMPTY_ARRAY
An empty IInstanceReferrers array.

Method Detail

getTargetObjectInfo

IObjectInfo getTargetObjectInfo()
Returns the object ID of the referree.

Returns:
an object ID

getInstances

IObjectInfo[] getInstances()
Returns info about objects that refer to the instance.

Returns:
array of ObjectInfo:s

getStaticFields

IStaticField[] getStaticFields()
Returns an array of names of all classes which have static fields that refer to this instance

Returns:
an array of class names

getThreadRoots

IThreadRoot[] getThreadRoots()
Returns the threadroots that refer to this instance.

Returns:
an array of threadroots

getGlobalHandles

int getGlobalHandles()
Returns the number of global handles that refer to this instance.

Returns:
the number of global handles


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.