[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] [RFA/JDWP] ReferenceKey
From: |
Tom Tromey |
Subject: |
Re: [cp-patches] [RFA/JDWP] ReferenceKey |
Date: |
20 Jun 2005 09:04:47 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Keith" == Keith Seitz <address@hidden> writes:
Keith> Unfortunately, with the WeakHashMap, there is no way to get the keys put
Keith> into a ReferenceQueue (that I can see at least). Consequently, I'll
Keith> never know when to clean up the idTable unless I iterate over the table,
Keith> asking each ID whether its object is still valid.
It seems like you could make a second WeakReference just for the queue.
A little ugly though.
Tom