Re: SoftReference operation synchronization detail



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/
.



Relevant Pages

  • Re: Type convertsion from string
    ... the second reference to each should have served as ... a back reference, but *1 was somehow to put the values, and *2 was ... It would have to be Reflection.Emit or dynamic compilation (compiler, ... I maintain that runtime properties are a very good way to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Professional Database question - SQL Server, Access, etc - Whats best?
    ... Seems you may now somehow have a reference to the file. ... Dave Patrick ....Please no email replies - reply in newsgroup. ... Also - I am trying to run the Package and Deployment wizard and it is ...
    (microsoft.public.vb.general.discussion)
  • Re: [PATCH] sysfs: kill an extra put in sysfs_create_link() failure path
    ... >>> Locking. ... >> down the reference later. ... Oops, somehow thought you were talking about allocating it first. ...
    (Linux-Kernel)
  • Re: Prefered frame of reference
    ... >>that still no frame of reference is preferred (in the sense in which ... >>are somehow different). ... > locally, not globally, so that tidbit is irrelevant. ...
    (sci.physics)
  • Re: Dead Wrong
    ... >>And this is somehow different from usual? ... >>French INTELLIGENCE services said: they've got them. ... >Reference please. ... Prev by Date: ...
    (sci.military.naval)