From: David P G. <gr...@us...> - 2006-03-13 13:18:59
|
You should look at the code for handling of stackoverflow. A trap is generated; handled on separate signal stack; execution is set to continue on the faulting thread's stack at VM_Runtime.deliverHardwareException. After growing the thread stack, execution resumes at the instruction after the faulting instruction. Same stack vs. different stack for signal handling is an orthogonal decision to everything else you've been talking about. Also note that on most platforms, by default we do the "timer interrupts" not with a signal but with a separate pthread doing timed-waits. More efficient and reduces the risk of interference with application signal handlers. --dave |