[josm-dev] Changes in JOSM core (referrers)
    Jiri Klement 
    jiri.klement at gmail.com
       
    Sun Nov  8 15:55:49 GMT 2009
    
    
  
On Sun, Nov 8, 2009 at 4:42 PM, Frederik Ramm <frederik at remote.org> wrote:
> Jiri Klement wrote:
>>
>> wtemp is temporary way, existingWay is some way in the dataset. wtemp
>> will be added as referrer to existingWay nodes and never released by
>> GC. I'm not sure yet if it's considerable and needs to be fixed (for
>> example by using SoftReference for primitives that don't have Dataset)
>
> I don't know what SoftReference is, but can't you use something like a
> WeakHashMap for this?
Actually I meant WeakReference, not SoftReference. The only difference
is that SoftReference should be released only when there is no free
memory while WeakReference should be release as soon as there is no
other reference to the object
    
    
More information about the josm-dev
mailing list