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:
parent
1453d9cb23
commit
7c1aeeeae9
@ -355,12 +355,6 @@ void Rewriter::scan_method(Method* method, bool reverse, bool* invokespecial_err
|
|||||||
|
|
||||||
int nof_jsrs = 0;
|
int nof_jsrs = 0;
|
||||||
bool has_monitor_bytecodes = false;
|
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::Code c;
|
||||||
|
|
||||||
// Bytecodes and their length
|
// Bytecodes and their length
|
||||||
@ -481,7 +475,6 @@ void Rewriter::scan_method(Method* method, bool reverse, bool* invokespecial_err
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Update access flags
|
// Update access flags
|
||||||
if (has_monitor_bytecodes) {
|
if (has_monitor_bytecodes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user