Update to description of JEP 193: Enhanced Volatiles

Remi Forax forax at univ-mlv.fr
Fri Oct 31 16:02:02 UTC 2014


On 10/31/2014 04:18 PM, Paul Sandoz wrote:

>
>> If
>> we were to approach this from the callsite point of view then the type of
>> the site should specify the class which owns the field and the type of
>> that field, with the name specified by the String passed to the bsm, and
>> the Java syntax would have to make it obvious that those are not
>> dynamically changeable.
>>
>> How would we express operations on atomic fields with this scheme?
>>
> The initial version of the JEP could of expressed that (with a number of solutions for how such expressions could translate to byte code). It was a good attempt ("least-bad way at the time"), but we were not happy with it.

yes, if an API is wrong, use another one. If a language feature is 
wrong, it will stick forever.

>
> Paul.

Rémi


More information about the valhalla-dev mailing list