< prev index next >

src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp

Print this page

        

*** 2166,2175 **** --- 2166,2179 ---- CheckGCTimeStampsHRClosure cl(_gc_time_stamp); heap_region_iterate(&cl); guarantee(!cl.failures(), "all GC time stamps should have been reset"); } + void G1CollectedHeap::set_heap_lock_held_for_gc(bool value) { + _thread_holds_heap_lock_for_gc = value; + } + bool G1CollectedHeap::heap_lock_held_for_gc() { Thread* t = Thread::current(); return Heap_lock->owned_by_self() || ( (t->is_GC_task_thread() || t->is_VM_thread()) && _thread_holds_heap_lock_for_gc);
< prev index next >