You'll need platform-specific code, but on Windows there's

And, to get a sense of caution, have a look at the ifdef madness surrounding 
the caller --
 -- to see the number of hoops we have to jump through to accommodate various 
build configs.

On Wed, Dec 19, 2018, at 7:12 AM, Henri Sivonen wrote:
> Is it possible to dynamically at run-time obtain a pointer to call
> stack limit? I mean the address that is the lowest address that the
> run-time stack can grow into without the process getting terminated
> with a stack overflow.
> I'm particularly interested in a solution that'd work on 32-bit
> Windows and on Dalvik. (On ART, desktop Linux, and 64-bit platforms we
> can make the stack "large enough" anyway.)
> Use case: Implementing a dynamic recursion limit.
> -- 
> Henri Sivonen
> _______________________________________________
> dev-platform mailing list
dev-platform mailing list

Reply via email to