Update to description of JEP 193: Enhanced Volatiles

Paul Sandoz paul.sandoz at oracle.com
Fri Oct 31 14:01:21 UTC 2014


On Oct 30, 2014, at 9:37 PM, Georges Gomes <georges.gomes at gmail.com> wrote:

> Hi Paul
> 
> This looks really good this way. IMHO much better than previous proposal.
> My only concern would be around refactorings. I guess it's only an IDE
> problem...
> But it needs to be manageable by IDE.
> In that sense, Remy's proposal is slightly easier to manage by the IDEs no?

Yes, probably a little easier for field access (array access is more involved). However, in my experience the process of modifying the j.u.concurrently classes and replacing Unsafe with VarHandle was not that arduous and rather quick.

I suspect both would be easily amenable to some automatic transformation via an IDE [*].

Paul.

[*] And maybe byte code transformations, which would be rather handy for testing with say jcstress tests. 


More information about the valhalla-dev mailing list