[concurrency-interest] Memory sensitive memoization

Dhanji R. Prasanna dhanji at gmail.com
Mon Jun 27 01:40:05 EDT 2011


On Mon, Jun 27, 2011 at 2:17 AM, Sanchay Harneja <sanchay.h at gmail.com>wrote:

> Hi Bob,
>
> Indeed, MapMaker's javadoc says:
>
> If strong or weak references were requested, it is possible for a key or
> value present in the the map to be reclaimed by the garbage collector. If
> this happens, the entry automatically disappears from the map.
>
> But I find this somewhat counter intuitive.
>

What other behavior could possibly be correct?

If you don't know what the key is anymore, you can't tell what value to
bring back... and it is effectively orphaned.

Dhanji.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20110627/d69379ba/attachment.html>


More information about the Concurrency-interest mailing list