This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Non-synchronized StringBuffer



Tom Tromey <tromey@redhat.com> writes:
> It isn't as easy as it sounds.  For one thing, a reference is passed
> to any methods invoked on it, and these methods might save `this' (for
> that matter, a constructor might save `this' somewhere).

Bleh, I forgot about that. At times like this I keep wishing that
Gosling had been more of a Haskell fan... AFAIK escape analysis should
be easy in pure functional languages...

  - a


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]