1f974ef Add patch from dbhole@redhat.com to initialize thread keys to -1

Authored and Committed by dwalsh 12 years ago
    Add patch from dbhole@redhat.com to initialize thread keys to -1
    Errors were being seen in libpthread/libdl that were related
    to corrupt thread specific keys. Global destructors that are called on dl
    unload. During destruction delete a thread specific key without checking
    if it has been initialized. Since the constructor is not called each time
    (i.e. key is not initialized with pthread_key_create each time), and the
    default is 0, there is a possibility that key 0 for an active thread gets
    deleted. This is exactly what is happening in case of OpenJDK.
    
        
file modified
+23 -1
file modified
+15 -1