[concurrency-interest] Java7 Fences API

Gregg Wonderly gregg at cytetech.com
Tue Jan 13 11:22:17 EST 2009


Doug Lea wrote:
> 1. Macros. If there were a standard Java Macro preprocessor,
> someone might introduce some (using C style for now):
>    #define publish(v, r) preStoreFence(); v = r
> Although even this could use C-like comma operator so it is
> one expression. (And readVolatile is trickier still.)  As
> overkill, maybe some AOP frameworks could be used in this
> way.
> 
> 2. Syntax support via casts. Allow casted references well as
> assignment. (You can't cast l-values because there are no
> l-values).

What about annotation style notations?

Gregg Wonderly


More information about the Concurrency-interest mailing list