Re: JavaMemoryModel: Mutually exclusive goals for Java memory model

From: Bill Pugh (pugh@cs.umd.edu)
Date: Thu Apr 04 2002 - 13:21:08 EST


At 9:59 AM -0800 4/4/02, Cliff Click wrote:
>This only happens when the underlying char array is exported to another thread
>prior to being converted into a String. Can we just get away with
>stating that
>this is another instance of 'escaping prior to end of the constructor', claim
>it's bad programming practice, remove the guarentees and leave it at that?

Yes, but doing so would that the existing implementation of
StringBuffer and String in Sun's JDK is broken.

We can do this. I just had taken this on as a requirement when I
started this, so I want to get consensus before abandoning it.

        Bill
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



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