hi,

code snippet from MetadataManager:

    public DescriptorRepository getRepository()
    {
        DescriptorRepository repository;
        if (enablePerThreadChanges)
        {
            repository = (DescriptorRepository) threadedRepository.get();
            if (repository == null)
            {
                repository = getGlobalRepository();
            }
            return repository;
        }
        else
        {
            return globalRepository;
        }
    }

1. i think "repository = getGlobalRepository();" 
   might be "repository = copyOfGlobalRepository();"
   since we are using repo's per thread, we do not want to hand out the
original,
   but always a copy local to this thread, and if not available, make one on
   the fly.

2. second, no matter what, after the execution of line:
   "repository = (DescriptorRepository) threadedRepository.get();"
   the variable "repository" is always null, even if i iterate within a
   single thread 100 times or so, it will always remain null, so
   i will copy 100 of the original repositories and store it in "some"
   threadlocal (where does it go???????), hence the memory leak!

this is my best guest so far, no solution yet!!

Roger Janssen


*************************************************************************
The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to  whom it is
addressed.You should not copy, disclose or distribute this communication 
without the authority of iBanx bv. iBanx bv is neither liable for 
the proper and complete transmission of the information has been maintained
nor that the communication is free of viruses, interceptions or interference.

If you are not the intended recipient of this communication please return
the communication to the sender and delete and destroy all copies.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to