< prev index next >
src/share/vm/gc/shared/genCollectedHeap.cpp
Print this page
*** 407,417 ****
"incorrect thread type capability");
assert(Heap_lock->is_locked(),
"the requesting thread should have the Heap_lock");
guarantee(!is_gc_active(), "collection is not reentrant");
! if (GC_locker::check_active_before_gc()) {
return; // GC is disabled (e.g. JNI GetXXXCritical operation)
}
GCIdMarkAndRestore gc_id_mark;
--- 407,417 ----
"incorrect thread type capability");
assert(Heap_lock->is_locked(),
"the requesting thread should have the Heap_lock");
guarantee(!is_gc_active(), "collection is not reentrant");
! if (GCLocker::check_active_before_gc()) {
return; // GC is disabled (e.g. JNI GetXXXCritical operation)
}
GCIdMarkAndRestore gc_id_mark;
< prev index next >