This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]