--- old/src/hotspot/share/gc/shared/gcLocker.inline.hpp 2018-03-22 17:04:07.616830321 +0100 +++ new/src/hotspot/share/gc/shared/gcLocker.inline.hpp 2018-03-22 17:04:07.412830328 +0100 @@ -26,8 +26,9 @@ #define SHARE_VM_GC_SHARED_GCLOCKER_INLINE_HPP #include "gc/shared/gcLocker.hpp" +#include "runtime/thread.hpp" -inline void GCLocker::lock_critical(JavaThread* thread) { +void GCLocker::lock_critical(JavaThread* thread) { if (!thread->in_critical()) { if (needs_gc()) { // jni_lock call calls enter_critical under the lock so that the @@ -40,7 +41,7 @@ thread->enter_critical(); } -inline void GCLocker::unlock_critical(JavaThread* thread) { +void GCLocker::unlock_critical(JavaThread* thread) { if (thread->in_last_critical()) { if (needs_gc()) { // jni_unlock call calls exit_critical under the lock so that