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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 20,29 **** --- 20,34 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ + #ifndef SHARE_VM_MEMORY_GCLOCKER_INLINE_HPP + #define SHARE_VM_MEMORY_GCLOCKER_INLINE_HPP + + #include "memory/gcLocker.hpp" + inline bool GC_locker::is_active() { return _lock_count > 0 || _jni_lock_count > 0; } inline bool GC_locker::check_active_before_gc() {
*** 68,72 **** --- 73,79 ---- } else { jni_unlock_slow(); } } } + + #endif // SHARE_VM_MEMORY_GCLOCKER_INLINE_HPP