abcl
abcl copied to clipboard
Explorations in adding atomic compare and swap
VarHandles were introduced in openjdk9, so the code needs to be conditionalized somehow. It is currently being developed on openjdk17.
is there anything blocking this? maybe this can be added as a package and throw an error on load if jdk is detected as lower than 9?
Not sure this code really does what we want for CAS, so at a minimum we should develop some tests.
As for conditionalizing the load we need a proposed implementation that is also tested.