On Sun, Nov 8, 2009 at 4:42 PM, Frederik Ramm <[email protected]> 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 _______________________________________________ josm-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/josm-dev
