Re: [udk-dev] Question about weak reference list inside java bridge.

2009-11-23 Thread Stephan Bergmann
On 11/23/09 07:58, Huaidong Qiu wrote: Hi all, We got a problem like this, one of the L2 entry list keep growing consume too much memory. module jurt package com.sun.star.lib.uno. environments.java; the cleanUp member function of class Registry. // must only be called while

Re: [udk-dev] Question about weak reference list inside java bridge.

2009-11-23 Thread Stephan Bergmann
Yes, thanks. I think now I get it. The code in cleanUp mistakenly thinks that Level1Entry.get is backed by a map (where there can be at most one entry for a given key) while in fact it is backed by a list (acting like a multi-map, allowing multiple entries for a given key). I will see how

Re: [udk-dev] Question about weak reference list inside java bridge.

2009-11-23 Thread Huaidong Qiu
Hi Stephan, I filed a issue for this problem, ISSUE# 107157http://www.openoffice.org/issues/show_bug.cgi?id=107157 . Thanks for you help On Tue, Nov 24, 2009 at 1:29 AM, Stephan Bergmann stephan.bergm...@sun.comwrote: Yes, thanks. I think now I get it. The code in cleanUp mistakenly

[udk-dev] Question about weak reference list inside java bridge.

2009-11-22 Thread Huaidong Qiu
Hi all, We got a problem like this, one of the L2 entry list keep growing consume too much memory. module jurt package com.sun.star.lib.uno. environments.java; the cleanUp member function of class Registry. // must only be called while synchronized on map: private void