[omniORB] memory leak in omni_thread
   
    David Riddoch
     
    djr@uk.research.att.com
       
    Wed, 19 May 1999 17:57:51 +0100 (GMT)
    
    
  
Hi,
Looking again, I think it is because you are creating undetached threads.
This means that when they complete they wait around for you to 'join'
them.
Try this:
void thread_adapter (void* param) {
}
Otherwise the same ...
This will create undetached threads that should clean up properly when
they complete.
David
On Wed, 19 May 1999, Bruce Visscher wrote:
> Just for fun, I tried this on VMS compiling under cxx 6.2 and I'm seeing
> similar results.  My virtual page count grows while threads are being
> created until the process finally exits with:
> 
>     omni_thread::create raised an exception
> 
> It looks like it will create 3361 threads before it crashes.  However, it
> doesn't appear to me to be running out of memory.  The page count never
> gets anywhere near my quota.
> 
> I too would be interested to know what's going on here as I'd like to know
> what kind of limitations I will run into if I try allocating large numbers
> of threads.
> 
> Bruce
> 
> 
>