mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8234739: Harmonize parameter order in Atomic - xchg
Reviewed-by: rehn, dholmes
This commit is contained in:
parent
213af1161a
commit
3d426623bf
45 changed files with 225 additions and 217 deletions
|
@ -998,7 +998,7 @@ static void InduceScavenge(Thread* self, const char * Whence) {
|
|||
// of active monitors passes the specified threshold.
|
||||
// TODO: assert thread state is reasonable
|
||||
|
||||
if (ForceMonitorScavenge == 0 && Atomic::xchg (1, &ForceMonitorScavenge) == 0) {
|
||||
if (ForceMonitorScavenge == 0 && Atomic::xchg(&ForceMonitorScavenge, 1) == 0) {
|
||||
// Induce a 'null' safepoint to scavenge monitors
|
||||
// Must VM_Operation instance be heap allocated as the op will be enqueue and posted
|
||||
// to the VMthread and have a lifespan longer than that of this activation record.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue