in reply to fork kills Inline::Java
One way to solve the problem would be to replace your fork() with a system() call that starts a new Perl process to perform your leaky code:
system("$^X -MSerious::Leaker -e 'Serious::Leaker->leak_on()'");
If that's impractical, you might look at the JNI and shared JVM options for Inline::Java (http://search.cpan.org/~patl/Inline-Java-0.52/Java.pod#JNI_vs_CLIENT/SERVER_MODES). It seems like either one might solve this problem. The shared JVM option seems particularly attractive since it also may improve performance.
-sam
|
|---|