```
Node* G1BarrierSetC2::atomic_xchg_at_resolved(C2AtomicParseAccess& access, Node* new_val, const Type* value_type) const {
GraphKit* kit = access.kit();
if (!access.is_oop()) {
return BarrierSetC2::atomic_xchg_at_resolved(access, new_val, value_type);
}
access.set_barrier_data(G1C2BarrierPre | G1C2BarrierPost);
return BarrierSetC2::atomic_xchg_at_resolved(access, new_val, value_type);
}
```
`kit` is unused. The same unused-var also occurs in `atomic_cmpxchg_val_at_resolved` and `atomic_cmpxchg_bool_at_resolved`
Node* G1BarrierSetC2::atomic_xchg_at_resolved(C2AtomicParseAccess& access, Node* new_val, const Type* value_type) const {
GraphKit* kit = access.kit();
if (!access.is_oop()) {
return BarrierSetC2::atomic_xchg_at_resolved(access, new_val, value_type);
}
access.set_barrier_data(G1C2BarrierPre | G1C2BarrierPost);
return BarrierSetC2::atomic_xchg_at_resolved(access, new_val, value_type);
}
```
`kit` is unused. The same unused-var also occurs in `atomic_cmpxchg_val_at_resolved` and `atomic_cmpxchg_bool_at_resolved`
- links to
-
Commit(master)
openjdk/jdk/8ad91ac1
-
Review(master)
openjdk/jdk/29561