[gclist] Garbage collection and XML
Thu, 8 Mar 2001 04:35:34 +1100
On 07-Mar-2001, Boehm, Hans <firstname.lastname@example.org> wrote:
> You could presumably also synchronize on the strings, effectively turning
> them into locks. In that case sharing might result in unexpected lock
> contention or deadlock. The fact that every object can be used for
> synchronization means that in some sense nothing is immutable.
How would you synchronize on the strings?
The java.lang.String class is declared `final', so you can't
inherit from it, and AFAIK there are no synchronized methods
Fergus Henderson <email@example.com> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.