1.1 --- a/src/share/vm/runtime/jniHandles.cpp Fri Jun 18 16:51:54 2010 -0700 1.2 +++ b/src/share/vm/runtime/jniHandles.cpp Mon Jun 21 14:26:17 2010 -0700 1.3 @@ -66,6 +66,7 @@ 1.4 1.5 1.6 jobject JNIHandles::make_global(Handle obj) { 1.7 + assert(!Universe::heap()->is_gc_active(), "can't extend the root set during GC"); 1.8 jobject res = NULL; 1.9 if (!obj.is_null()) { 1.10 // ignore null handles 1.11 @@ -81,6 +82,7 @@ 1.12 1.13 1.14 jobject JNIHandles::make_weak_global(Handle obj) { 1.15 + assert(!Universe::heap()->is_gc_active(), "can't extend the root set during GC"); 1.16 jobject res = NULL; 1.17 if (!obj.is_null()) { 1.18 // ignore null handles