open Udiff src/hotspot/share/gc/shared/gcLocker.cpp (original) (raw)

< prev index next >

Print this page


@@ -22,11 +22,11 @@ * */

#include "precompiled.hpp" #include "gc/shared/collectedHeap.hpp" -#include "gc/shared/gcLocker.inline.hpp" +#include "gc/shared/gcLocker.hpp" #include "memory/resourceArea.hpp" #include "logging/log.hpp" #include "runtime/atomic.hpp" #include "runtime/thread.inline.hpp" #include "runtime/threadSMR.hpp"


@@ -83,10 +83,14 @@ ResourceMark rm; // JavaThread::name() allocates to convert to UTF8 log.debug("%s Thread "%s" %d locked.", msg, Thread::current()->name(), _jni_lock_count); } }

+bool GCLocker::is_at_safepoint() {


@@ -143,89 +147,5 @@ _doing_gc = false; _needs_gc = false; JNICritical_lock->notify_all(); } }

-// Implementation of NoGCVerifier

-#ifdef ASSERT

-NoGCVerifier::NoGCVerifier(bool verifygc) { - _verifygc = verifygc; - if (_verifygc) { - CollectedHeap* h = Universe::heap(); - assert(!h->is_gc_active(), "GC active during NoGCVerifier"); - _old_invocations = h->total_collections(); - } -}

< prev index next >