W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1998

Re: An observation about "live" NodeLists

From: Arnaud Le Hors <lehors@w3.org>
Date: Tue, 20 Oct 1998 16:39:47 +0200
Message-ID: <362CA0B3.D62FD99E@w3.org>
To: www-dom@w3.org
keshlam@us.ibm.com wrote:
> >In Java, at least, this is a serious issue, because the vagaries
> >of GC make it impossible to tell particularly early whether or
> >not a NodeList is in use.
> In fact, I looked at such an implementation, and quickly decided Java
> wasn't well suited to it and/or vice versa. Since Java's GC-based, making
> the Nodes aware of the NodeLists means the NodeList objects have to persist
> as long as the Nodes they're based on do; there's no architected way to
> tell the DOM that they're no longer needed.

I know we can't rely on this yet but the WeakReferences in Java 1.2 will
greatly help address this problem.
Received on Tuesday, 20 October 1998 10:39:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC