Top Inners Fields Constructors Methods
stormpot

pack-priv final Class PreciseLeakDetector

extends Object
Class Inheritance
Imports
java.lang.ref.WeakReference

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
private int
private final Object[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
private boolean
chainShorterThan(int length, Object weakRef)

pack-priv synchronized long
private PreciseLeakDetector.WeakRef
pack-priv synchronized void
private PreciseLeakDetector.WeakRef
pack-priv synchronized void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

branchFactorback to summary
private static final int branchFactor
branchMaskback to summary
private static final int branchMask
branchPowerback to summary
private static final int branchPower
leakedObjectCountback to summary
private int leakedObjectCount
probesback to summary
private final Object[] probes

Constructor Detail

PreciseLeakDetectorback to summary
pack-priv PreciseLeakDetector()

Method Detail

assocLevel2back to summary
private void assocLevel2(PreciseLeakDetector.WeakRef[] level2, PreciseLeakDetector.WeakRef chain)
chainShorterThanback to summary
private boolean chainShorterThan(int length, Object weakRef)
countLeakedObjectsback to summary
pack-priv synchronized long countLeakedObjects()
pruneChainback to summary
private PreciseLeakDetector.WeakRef pruneChain(PreciseLeakDetector.WeakRef chain)
registerback to summary
pack-priv synchronized void register(Object obj)
removeFromChainback to summary
private PreciseLeakDetector.WeakRef removeFromChain(PreciseLeakDetector.WeakRef chain, Object obj)
unregisterback to summary
pack-priv synchronized void unregister(Object obj)
stormpot back to summary

private Class PreciseLeakDetector.WeakRef

extends WeakReference<Object>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv PreciseLeakDetector.WeakRef

Constructor Summary

AccessConstructor and Description
pack-priv
WeakRef(Object referent)

Field Detail

nextback to summary
pack-priv PreciseLeakDetector.WeakRef next

Hides java.lang.ref.Reference.next.

Constructor Detail

WeakRefback to summary
pack-priv WeakRef(Object referent)