mikehearn
08/10/2017, 2:36 PMdiesieben07
08/10/2017, 2:38 PMVarHandles
are much lower level, basically just a "nice API for Unsafe". Atomicfu builds on the exising JDK libraries, like AtomicInteger
, which provide a safe API, but might not be as performant and not offer everything you need.
With VarHandles for example you can address individual array indices as if they were volatile, you can't do that with current JDK APIs.elizarov
08/10/2017, 2:53 PMMETA-INF/versions
directory, so that your code work via `AxFU`classes on JDK<=1.8 and via VarHandles on JDK>=1.9diesieben07
08/10/2017, 3:04 PM