On Wed, Dec 1, 2010 at 3:33 AM, Evan Jones <ev...@mit.edu> wrote:
> The instanceof approach to switch between the two is a good idea. When I
> wrote my implementation, I was concerned about the thread-safeness issues,
> although I don't think I ever considered this particular version. However, I
> think this can be made thread-safe, even without volatile (although I only
> understand the JMM enough to be dangerous).
Well, Jeremy Manson literally wrote the book on the Java memory model, and
he says it works. :)
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at