mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6656830: assert((*p)->is_oop(),"expected an oop while scanning weak refs")
Reviewed-by: dcubed, kvn, twisti
This commit is contained in:
parent
338714d4e6
commit
fdaa7a673c
4 changed files with 36 additions and 12 deletions
|
@ -66,6 +66,7 @@ jobject JNIHandles::make_local(JNIEnv* env, oop obj) {
|
|||
|
||||
|
||||
jobject JNIHandles::make_global(Handle obj) {
|
||||
assert(!Universe::heap()->is_gc_active(), "can't extend the root set during GC");
|
||||
jobject res = NULL;
|
||||
if (!obj.is_null()) {
|
||||
// ignore null handles
|
||||
|
@ -81,6 +82,7 @@ jobject JNIHandles::make_global(Handle obj) {
|
|||
|
||||
|
||||
jobject JNIHandles::make_weak_global(Handle obj) {
|
||||
assert(!Universe::heap()->is_gc_active(), "can't extend the root set during GC");
|
||||
jobject res = NULL;
|
||||
if (!obj.is_null()) {
|
||||
// ignore null handles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue