Re: JavaMemoryModel: Idiom for safe, unsynchronized reads

From: Bill Pugh (pugh@cs.umd.edu)
Date: Mon Jun 28 1999 - 13:06:49 EDT


>
>
>In response to Bill's posting I can say that the Alpha _does_ do the kind
>of "aggressive" reordering that would make this idiom difficult to
>implement.

In that case, this makes access to object headers, including virtual
method tables, unsafe in the presence of data races. I don't believe
this acceptable.

Do you:
        * believe it is acceptable to make it unsafe, or
        * believe it is not unsafe?
        * believe it acceptable to insert memory barriers before each
          access to an object header?

Bill Pugh

-------------------------------
This is the JavaMemoryModel mailing list, managed by Majordomo 1.94.4.

To send a message to the list, email JavaMemoryModel@cs.umd.edu
To send a request to the list, email majordomo@cs.umd.edu and put
your request in the body of the message (use the request "help" for help).
For more information, visit http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:13 EDT