src/share/vm/memory/gcLocker.inline.hpp

changeset 6619
9c3dc501b5eb
parent 3576
ad3b47344802
child 6876
710a3c8b516e
     1.1 --- a/src/share/vm/memory/gcLocker.inline.hpp	Mon Apr 14 20:56:48 2014 -0400
     1.2 +++ b/src/share/vm/memory/gcLocker.inline.hpp	Thu Feb 13 10:05:03 2014 +0100
     1.3 @@ -27,22 +27,6 @@
     1.4  
     1.5  #include "memory/gcLocker.hpp"
     1.6  
     1.7 -inline void GC_locker::lock() {
     1.8 -  // cast away volatile
     1.9 -  Atomic::inc(&_lock_count);
    1.10 -  CHECK_UNHANDLED_OOPS_ONLY(
    1.11 -    if (CheckUnhandledOops) { Thread::current()->_gc_locked_out_count++; })
    1.12 -  assert(Universe::heap() == NULL ||
    1.13 -         !Universe::heap()->is_gc_active(), "locking failed");
    1.14 -}
    1.15 -
    1.16 -inline void GC_locker::unlock() {
    1.17 -  // cast away volatile
    1.18 -  Atomic::dec(&_lock_count);
    1.19 -  CHECK_UNHANDLED_OOPS_ONLY(
    1.20 -    if (CheckUnhandledOops) { Thread::current()->_gc_locked_out_count--; })
    1.21 -}
    1.22 -
    1.23  inline void GC_locker::lock_critical(JavaThread* thread) {
    1.24    if (!thread->in_critical()) {
    1.25      if (needs_gc()) {

mercurial