|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ref.Reference
java.lang.ref.PhantomReference
com.moesol.bindings.platform_sdk.windows_api.NativeResourceRef
public class NativeResourceRef
Check for native handle leaks. A handle is any java object which holds a native pointer.
| Method Summary | |
|---|---|
void |
check()
This method is called by NativeLeakChecker thread when objects implementing this interface are dequed. |
static long |
getLeakCount()
|
static boolean |
recordCreateLocation(Object holder,
long native_handle)
call from assert always returns true |
static boolean |
removeCreateLocation(long native_handle)
call from assert always returns true |
| Methods inherited from class java.lang.ref.PhantomReference |
|---|
get |
| Methods inherited from class java.lang.ref.Reference |
|---|
clear, enqueue, isEnqueued |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean recordCreateLocation(Object holder,
long native_handle)
public static boolean removeCreateLocation(long native_handle)
public void check()
NativeResourceChecker
check in interface NativeResourceCheckerpublic static long getLeakCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||