>>>>> "Robert" == Robert Schuster <[EMAIL PROTECTED]> writes:
Robert> 2005-09-19 Robert Schuster <[EMAIL PROTECTED]> Robert> * java/util/ResourceBundle.java: Changed type of bundleCache Robert> to WeakHashMap. Unfortunately I don't think this is the correct solution. In practice I think this patch would not cause caching for very long -- the next GC cycle would notice that there are no other references to the keys in the map, and it would be cleared. One idea would be a map where the entries are soft references, so that (in theory) they are only cleared when memory is needed (though at least libgcj treats soft references like weak ones atm). Or, we could have a fixed size cache that removes the least-recently-used entry. Tom _______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
