TheRealMDoerr suggestions
This commit is contained in:
parent
726bddfb43
commit
88c1d72eda
@ -83,8 +83,11 @@ void BarrierSetNMethod::arm_with(nmethod* nm, int value) {
|
||||
if (is_not_entrant(nm)) {
|
||||
value |= not_entrant;
|
||||
}
|
||||
if (guard_value(nm) != value) {
|
||||
// Patch the code only if needed.
|
||||
set_guard_value(nm, value);
|
||||
}
|
||||
}
|
||||
|
||||
bool BarrierSetNMethod::is_armed(nmethod* nm) {
|
||||
return (guard_value(nm) & ~not_entrant) != disarmed_guard_value();
|
||||
|
@ -113,8 +113,11 @@ void ZBarrierSetNMethod::arm_with(nmethod* nm, int value) {
|
||||
if (is_not_entrant(nm)) {
|
||||
value |= not_entrant;
|
||||
}
|
||||
if (guard_value(nm) != value) {
|
||||
// Patch the code only if needed.
|
||||
set_guard_value(nm, value);
|
||||
}
|
||||
}
|
||||
|
||||
bool ZBarrierSetNMethod::is_armed(nmethod* nm) {
|
||||
int value = guard_value(nm) & ~not_entrant;
|
||||
|
Loading…
x
Reference in New Issue
Block a user