Re: SoftReference operation synchronization detail
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 19:54:07 +0100
stamenkov@xxxxxxxxx wrote:
... At the same time or at some later time it will enqueue those
newly-cleared soft references...
I don't understand how are the references processed from those queues,
given the they have already been cleared, but I've speculated that
process might have cleared my Reference variables, somehow. It is quite
possible I haven't overseen something, too.
When using ReferenceQueues, you typically subclass the Reference implementation and add fields to that so you know what disappeared. Alternatively you can do it on object identity of the Reference with a map of some description.
Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.
- References:
- SoftReference operation synchronization detail
- From: Stanimir Stamenkov
- Re: SoftReference operation synchronization detail
- From: Oliver Wong
- Re: SoftReference operation synchronization detail
- From: stamenkov
- SoftReference operation synchronization detail
- Prev by Date: Re: SoftReference operation synchronization detail
- Next by Date: Re: create jar file with external jar library
- Previous by thread: Re: SoftReference operation synchronization detail
- Next by thread: Diff b/w vector class and arraylist.
- Index(es):
Relevant Pages
|
|