< prev index next >

src/hotspot/share/code/compiledIC.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2019, 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) 1997, 2018, 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.
*** 50,60 **** // either the CompiledIC_lock must be set or we must be at a safe point. CompiledICLocker::CompiledICLocker(CompiledMethod* method) : _method(method), _behaviour(CompiledICProtectionBehaviour::current()), ! _locked(_behaviour->lock(_method)) { } CompiledICLocker::~CompiledICLocker() { if (_locked) { _behaviour->unlock(_method); --- 50,61 ---- // either the CompiledIC_lock must be set or we must be at a safe point. CompiledICLocker::CompiledICLocker(CompiledMethod* method) : _method(method), _behaviour(CompiledICProtectionBehaviour::current()), ! _locked(_behaviour->lock(_method)), ! _nsv(true, !SafepointSynchronize::is_at_safepoint()) { } CompiledICLocker::~CompiledICLocker() { if (_locked) { _behaviour->unlock(_method);
< prev index next >