diff -r 0b959dfdf0d9 -r 262afafdb266 src/hotspot/share/code/compiledIC.cpp --- a/src/hotspot/share/code/compiledIC.cpp Tue Feb 05 15:06:08 2019 -0800 +++ b/src/hotspot/share/code/compiledIC.cpp Wed Feb 06 00:20:37 2019 +0100 @@ -51,7 +51,8 @@ CompiledICLocker::CompiledICLocker(CompiledMethod* method) : _method(method), _behaviour(CompiledICProtectionBehaviour::current()), - _locked(_behaviour->lock(_method)){ + _locked(_behaviour->lock(_method)), + _nsv(true, !SafepointSynchronize::is_at_safepoint()) { } CompiledICLocker::~CompiledICLocker() { @@ -583,17 +584,6 @@ return is_icholder_entry(dest); } -// Release the CompiledICHolder* associated with this call site is there is one. -void CompiledIC::cleanup_call_site(virtual_call_Relocation* call_site, const CompiledMethod* cm) { - assert(cm->is_nmethod(), "must be nmethod"); - // This call site might have become stale so inspect it carefully. - NativeCall* call = nativeCall_at(call_site->addr()); - if (is_icholder_entry(call->destination())) { - NativeMovConstReg* value = nativeMovConstReg_at(call_site->cached_value()); - InlineCacheBuffer::queue_for_release((CompiledICHolder*)value->data()); - } -} - // ---------------------------------------------------------------------------- bool CompiledStaticCall::set_to_clean(bool in_use) {