On 11/17/2015 07:43 AM, Paul Sandoz wrote:
Separately but related, i have a solution that allows VarHandles to be used in the A*FU implementations. However, i am not sure it would be possible to preserve the exact exception throwing behaviour and their content e.g. the type of a CAS expect value would likely be checked.
Because changes will probably be applied to 8u, I was (overly) careful to preserve exact exception forms. But I don't think there is a reason to do so for jdk9, so we might want to look into this after the rest of VarHandles stablilize, possibly needing an uninteresting CCC change to allow uninterestingly different exceptions. -Doug