On Wed, Jan 05, 2005 at 03:21:06AM -0800, Gisle Aas wrote: > For a threaded perl the thread key is allocated on the first call to > perl_alloc() but there is nothing that frees this key on Unix. On > Windows we watch for the DLL_PROCESS_DETACH event and then release the > key. This patch implements the same for other platforms using > compiler dependent destructors. The patch has been tested on Linux > (gcc) and HP-UX (cc and gcc).
This is by implication horribly unportable. Is there no hook that mod_perl provides on shared object unloading? Does anyone know how to do this sort of thing with other compilers? eg Sun's compiler? Nicholas Clark
