< prev index next >
src/hotspot/share/aot/aotCompiledMethod.cpp
Print this page
@@ -158,12 +158,10 @@
void AOTCompiledMethod::do_unloading(bool unloading_occurred) {
unload_nmethod_caches(unloading_occurred);
}
bool AOTCompiledMethod::make_not_entrant_helper(int new_state) {
- // Make sure the method is not flushed in case of a safepoint in code below.
- methodHandle the_method(method());
NoSafepointVerifier nsv;
{
// Enter critical section. Does not block for safepoint.
MutexLocker pl(CompiledMethod_lock, Mutex::_no_safepoint_check_flag);
@@ -206,14 +204,11 @@
#ifdef TIERED
bool AOTCompiledMethod::make_entrant() {
assert(!method()->is_old(), "reviving evolved method!");
- // Make sure the method is not flushed in case of a safepoint in code below.
- methodHandle the_method(method());
NoSafepointVerifier nsv;
-
{
// Enter critical section. Does not block for safepoint.
MutexLocker pl(CompiledMethod_lock, Mutex::_no_safepoint_check_flag);
if (*_state_adr == in_use || *_state_adr == not_entrant) {
< prev index next >