Re: [OT] A question on garbage collecting

2006-08-02 Thread Leon Rosenberg
Thank you Tamas, On 8/2/06, Tamas Szabo [EMAIL PROTECTED] wrote: Hi Leon, I doubt I have more experience :-) but as I know soft references are collected when the GC decides to do so. The only thing you can be sure of is that they will be collected _if_ the VM is running out of memory. But

[OT] A question on garbage collecting

2006-08-01 Thread Leon Rosenberg
Hi, I have a question regarding a weird behaviour of the garbage collector, maybe someone here, has more experience with it, and can answer the question. Otherwise sorry for the OT. We have a cache for caching 1000.000 user objects along with many (some hundred thousand) not existing objects

Re: [OT] A question on garbage collecting

2006-08-01 Thread Tamas Szabo
Hi Leon, I doubt I have more experience :-) but as I know soft references are collected when the GC decides to do so. The only thing you can be sure of is that they will be collected _if_ the VM is running out of memory. But there is no guarantee that they will not be collected before. You are