@@ -191,22 +191,22 @@ void runControlFlowTests() {
191
191
static void testAllocateThenAtomic (Inner i ) {
192
192
Outer o = new Outer ();
193
193
Common .blackhole (o );
194
- Common .field1VarHandle .getAndSet (o , i );
194
+ Common .field1VarHandle .getAndSet (o , i );
195
195
}
196
196
197
197
@ Test
198
198
@ IR (counts = { IRNode .Z_LOAD_P_WITH_BARRIER_FLAG , Common .REMAINING , "1" }, phase = CompilePhase .FINAL_CODE )
199
199
@ IR (counts = { IRNode .Z_GET_AND_SET_P_WITH_BARRIER_FLAG , Common .REMAINING , "1" }, phase = CompilePhase .FINAL_CODE )
200
200
static void testLoadThenAtomic (Outer o , Inner i ) {
201
201
Common .blackhole (o .field1 );
202
- Common .field1VarHandle .getAndSet (o , i );
202
+ Common .field1VarHandle .getAndSet (o , i );
203
203
}
204
204
205
205
@ Test
206
206
@ IR (counts = { IRNode .Z_GET_AND_SET_P_WITH_BARRIER_FLAG , Common .REMAINING , "2" }, phase = CompilePhase .FINAL_CODE )
207
207
static void testAtomicThenAtomicAnotherField (Outer o , Inner i ) {
208
- Common .field1VarHandle .getAndSet (o , i );
209
- Common .field2VarHandle .getAndSet (o , i );
208
+ Common .field1VarHandle .getAndSet (o , i );
209
+ Common .field2VarHandle .getAndSet (o , i );
210
210
}
211
211
212
212
@ Test
@@ -390,31 +390,31 @@ void runControlFlowTests() {
390
390
@ IR (counts = { IRNode .Z_GET_AND_SET_P_WITH_BARRIER_FLAG , Common .ELIDED , "1" }, phase = CompilePhase .FINAL_CODE )
391
391
static void testStoreThenAtomic (Outer o , Inner i ) {
392
392
o .field1 = i ;
393
- Common .field1VarHandle .getAndSet (o , i );
393
+ Common .field1VarHandle .getAndSet (o , i );
394
394
}
395
395
396
396
@ Test
397
397
@ IR (counts = { IRNode .Z_GET_AND_SET_P_WITH_BARRIER_FLAG , Common .REMAINING , "1" }, phase = CompilePhase .FINAL_CODE )
398
398
@ IR (counts = { IRNode .Z_LOAD_P_WITH_BARRIER_FLAG , Common .ELIDED , "1" }, phase = CompilePhase .FINAL_CODE )
399
399
static void testAtomicThenLoad (Outer o , Inner i ) {
400
- Common .field1VarHandle .getAndSet (o , i );
400
+ Common .field1VarHandle .getAndSet (o , i );
401
401
Common .blackhole (o .field1 );
402
402
}
403
403
404
404
@ Test
405
405
@ IR (counts = { IRNode .Z_GET_AND_SET_P_WITH_BARRIER_FLAG , Common .REMAINING , "1" }, phase = CompilePhase .FINAL_CODE )
406
406
@ IR (counts = { IRNode .Z_STORE_P_WITH_BARRIER_FLAG , Common .ELIDED , "1" }, phase = CompilePhase .FINAL_CODE )
407
407
static void testAtomicThenStore (Outer o , Inner i ) {
408
- Common .field1VarHandle .getAndSet (o , i );
408
+ Common .field1VarHandle .getAndSet (o , i );
409
409
o .field1 = i ;
410
410
}
411
411
412
412
@ Test
413
413
@ IR (counts = { IRNode .Z_GET_AND_SET_P_WITH_BARRIER_FLAG , Common .REMAINING , "1" }, phase = CompilePhase .FINAL_CODE )
414
414
@ IR (counts = { IRNode .Z_GET_AND_SET_P_WITH_BARRIER_FLAG , Common .ELIDED , "1" }, phase = CompilePhase .FINAL_CODE )
415
415
static void testAtomicThenAtomic (Outer o , Inner i ) {
416
- Common .field1VarHandle .getAndSet (o , i );
417
- Common .field1VarHandle .getAndSet (o , i );
416
+ Common .field1VarHandle .getAndSet (o , i );
417
+ Common .field1VarHandle .getAndSet (o , i );
418
418
}
419
419
420
420
@ Test
0 commit comments