< prev index next >

src/share/vm/code/nmethod.cpp

Print this page

        

*** 690,700 **** nmethod_size, offsets->value(CodeOffsets::Frame_Complete), frame_size, oop_maps), _native_receiver_sp_offset(basic_lock_owner_sp_offset), _native_basic_lock_sp_offset(basic_lock_sp_offset) { { ! debug_only(No_Safepoint_Verifier nsv;) assert_locked_or_safepoint(CodeCache_lock); init_defaults(); _method = method; _entry_bci = InvocationEntryBci; --- 690,700 ---- nmethod_size, offsets->value(CodeOffsets::Frame_Complete), frame_size, oop_maps), _native_receiver_sp_offset(basic_lock_owner_sp_offset), _native_basic_lock_sp_offset(basic_lock_sp_offset) { { ! debug_only(NoSafepointVerifier nsv;) assert_locked_or_safepoint(CodeCache_lock); init_defaults(); _method = method; _entry_bci = InvocationEntryBci;
*** 794,804 **** _native_receiver_sp_offset(in_ByteSize(-1)), _native_basic_lock_sp_offset(in_ByteSize(-1)) { assert(debug_info->oop_recorder() == code_buffer->oop_recorder(), "shared OR"); { ! debug_only(No_Safepoint_Verifier nsv;) assert_locked_or_safepoint(CodeCache_lock); init_defaults(); _method = method; _entry_bci = entry_bci; --- 794,804 ---- _native_receiver_sp_offset(in_ByteSize(-1)), _native_basic_lock_sp_offset(in_ByteSize(-1)) { assert(debug_info->oop_recorder() == code_buffer->oop_recorder(), "shared OR"); { ! debug_only(NoSafepointVerifier nsv;) assert_locked_or_safepoint(CodeCache_lock); init_defaults(); _method = method; _entry_bci = entry_bci;
*** 1402,1412 **** assert(!is_zombie(), "should not already be a zombie"); // Make sure neither the nmethod nor the method is flushed in case of a safepoint in code below. nmethodLocker nml(this); methodHandle the_method(method()); ! No_Safepoint_Verifier nsv; // during patching, depending on the nmethod state we must notify the GC that // code has been unloaded, unregistering it. We cannot do this right while // holding the Patching_lock because we need to use the CodeCache_lock. This // would be prone to deadlocks. --- 1402,1412 ---- assert(!is_zombie(), "should not already be a zombie"); // Make sure neither the nmethod nor the method is flushed in case of a safepoint in code below. nmethodLocker nml(this); methodHandle the_method(method()); ! NoSafepointVerifier nsv; // during patching, depending on the nmethod state we must notify the GC that // code has been unloaded, unregistering it. We cannot do this right while // holding the Patching_lock because we need to use the CodeCache_lock. This // would be prone to deadlocks.
< prev index next >