|
|
|
|
|
by axiak
3381 days ago
|
|
Those uses of AtomicFoo classes could probably be updated to use AtomicFooUpdater fields (e.g. AtomicIntegerFieldUpdater). VarHandle is like AtomicFieldUpdater but with all of the concurrency semantics that were accessible only via Unsafe access. |
|
In Java generics are erased at runtime, so the reference updater code has some supplementary runtime checks.