|
From: Robey P. <ro...@da...> - 2006-11-07 00:48:31
|
3rd patch of 4. This one is a little rough. Basically, under high load, catching signals inside JNI causes the JVM to crash, at least on Linux. Crashing the JVM is really bad, and basically a non- recoverable error for any java code. Since signals are caught by the wrapper process and passed to the JVM across a control channel, there is no reason for JNI code to try to handle signals anyway, so we just uncommented this code. This may need more discussion: What is this code meant to be used for? In general, my experience has been that the JVM tends to use signals for its own purposes, so trying to catch signals in the JVM is bad medicine. This is especially true for things like HUP, USR1, and USR2. robey |