Project

General

Profile

Bug #7041

Updated by shyouhei (Shyouhei Urabe) over 11 years ago

=begin 
 Ruby does not destroy pthread condattr structure after allocating and using it in pthread_thread.c:native_cond_initialize(). 
 This causes a memory leak that can be demonstrated by the following snipplet: 

   

 (({ 
 loop do 
           
         Mutex.new 
           
         GC.start 
   
 end 
 })) 

 The patch attached fixes it. 
 This happens on both 1.9 and head. 
 =end

Back