On Thu, 17 Sep 2026 13:59:04 GMT, Ashay Rane <[email protected]> wrote:
> When this special page is accessed by the stack banging code, the Windows > stack-growth machinery kicks in prior to validating the PAGE_NOACCESS > attribute, and because the stack can't grow any further, Windows raises > EXCEPTION_STACK_OVERFLOW. Doesn't this happen because the page is in the range set by SetThreadStackGuarantee()? I'm wondering what happens if we instead set SetThreadStackGuarantee() to the smallest size possible (1 page?). Will we then get a EXCEPTION_ACCESS_VIOLATION instead of EXCEPTION_STACK_OVERFLOW? ------------- PR Comment: https://git.openjdk.org/jdk/pull/32365#issuecomment-5844324859
