Stack frames larger than 4K should be rejected, but what if I want more
Dennis
dkorpel at gmail.com
Sun Jun 27 20:17:48 UTC 2021
On Sunday, 27 June 2021 at 19:41:40 UTC, Ola Fosheim Grøstad
wrote:
> It makes no sense and would kill a system level language.
While it's not specified in "The compiler should reject any stack
frame that's larger than 4K", I think it's only meant to apply to
@safe functions, not @system or @trusted ones.
Also, instead of straight up rejecting large stack frames in
@safe code, the compiler could also start such a function with
probing the guard page by making writes at intervals of 4K.
More information about the Digitalmars-d
mailing list