8068317: No_Safepoint_Verifier is not necessary in Rewriter::scan_method

Remove NSV, Method* can't move or be redefined while being rewritten

Reviewed-by: shade, jiangli
This commit is contained in:
Coleen Phillimore 2017-08-09 19:00:54 -04:00
parent 1453d9cb23
commit 7c1aeeeae9

View File

@ -355,12 +355,6 @@ void Rewriter::scan_method(Method* method, bool reverse, bool* invokespecial_err
int nof_jsrs = 0;
bool has_monitor_bytecodes = false;
{
// We cannot tolerate a GC in this block, because we've
// cached the bytecodes in 'code_base'. If the Method*
// moves, the bytecodes will also move.
NoSafepointVerifier nsv;
Bytecodes::Code c;
// Bytecodes and their length
@ -481,7 +475,6 @@ void Rewriter::scan_method(Method* method, bool reverse, bool* invokespecial_err
default: break;
}
}
}
// Update access flags
if (has_monitor_bytecodes) {