Re: [rvm-research] soft references

Eliot Moss <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
On 11/25/2013 12:46 AM, UGAWA Tomoharu wrote:

> A solution is as follows.
>
> 1. Usual standard transitive closure, tracing from the usual roots, marking objects.
> 2a. If we decide to retain softly reachable objects,
>          examine each SoftReference in the table of references
>          if the reference is marked, mark the transitive closure of its referent.
> 2b. If we decide to reclaim softly reachable objects,
> 	examine each SoftReference in the table of references
> 	if its referent is not marked, set the referent to null.
> 3. Reclaim any unmarked objects.

I would agree with this.

Regards -- Eliot Moss

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.