This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [cp-patches] [RFA/JDWP] ReferenceKey
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> 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