> Would it be possible to keep a list of weak references and use one of
> those magic queue things that notifies you when your objects become
> unreachable?

A weak-reference (whichever kind is needed - I don't recall details) would
solve the problem and be subclass safe, but would involve even more overhead
that a finalizer. Keeping a notStartedCount is trivial, but keeping a set of
references requires array management etc. I don't think it is worth it.

BTW in discussing with other JSR-166 members the consensus is that the
ThreadGroup methods should be specified in terms of the new ThreadState
enum.

David Holmes



_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to