How are stacks of non-JavaThreads guarded? (original) (raw)

Thomas Stüfe thomas.stuefe at gmail.com
Mon Nov 30 07:01:13 UTC 2015


Hi Andrew,

On Sat, Nov 28, 2015 at 10:57 AM, Andrew Haley <aph at redhat.com> wrote:

On 28/11/15 07:55, Thomas Stüfe wrote: > So, in JavaThread we establish stack guards (red and yellow zones). But I > do not find anything similar for non JavaThread threads, e.g. VmThread?

There isn't, and I don't think it's possible because there is no reasonably portable way to recover from a stack overflow in C++. thanks for clarifying.

But I don't even want to recover; a hard-and-fast crash is better than running over whatever happens to be below the VmThread stack. Well, something to mull over.

Regards, Thomas

Andrew.



More information about the hotspot-runtime-dev mailing list