gcj internals documentation

Adam Megacz adam@megacz.com
Fri Oct 6 01:30:00 GMT 2006


Tom Tromey <tromey@redhat.com> writes:
> The other is that StringBuilder, which is not synchronized, requires a
> second allocation at toString time -- even if the StringBuilder does
> not escape the thread and is dead after the call (since we don't
> detect this).

Hrm, why doesn't StringBuilder have a "boolean shared" field like
StringBuffer does? I really like that trick ;)
 - a
-- 
PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /