equal
deleted
inserted
replaced
80 static void destroy_global(jobject handle); |
80 static void destroy_global(jobject handle); |
81 |
81 |
82 // Weak global handles |
82 // Weak global handles |
83 static jobject make_weak_global(Handle obj); |
83 static jobject make_weak_global(Handle obj); |
84 static void destroy_weak_global(jobject handle); |
84 static void destroy_weak_global(jobject handle); |
|
85 static bool is_global_weak_cleared(jweak handle); // Test jweak without resolution |
85 |
86 |
86 // Sentinel marking deleted handles in block. Note that we cannot store NULL as |
87 // Sentinel marking deleted handles in block. Note that we cannot store NULL as |
87 // the sentinel, since clearing weak global JNI refs are done by storing NULL in |
88 // the sentinel, since clearing weak global JNI refs are done by storing NULL in |
88 // the handle. The handle may not be reused before destroy_weak_global is called. |
89 // the handle. The handle may not be reused before destroy_weak_global is called. |
89 static oop deleted_handle() { return _deleted_handle; } |
90 static oop deleted_handle() { return _deleted_handle; } |