[concurrency-interest] Java7 Fences API

Doug Lea dl at cs.oswego.edu
Wed Jan 14 13:15:58 EST 2009

Gregg Wonderly wrote:
> 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
> What about annotation style notations?

I haven't been able to come up with an annotation scheme
that works here, and don't think one is possible, since
the annotation targets are sometimes assignment statements,
which cannot be independently annotated.


More information about the Concurrency-interest mailing list