Stack frames larger than 4K should be rejected, but what if I want more
ag0aep6g
anonymous at example.com
Mon Jun 28 10:05:56 UTC 2021
On Sunday, 27 June 2021 at 23:12:44 UTC, Walter Bright wrote:
> On 6/27/2021 1:17 PM, Dennis wrote:
>> 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.
>
> dmd already does that. But very few programmers are aware of
> this, and it's pretty inefficient.
??
DMD does not emit stack probes. If it did, issue 17566 (and this
forum thread) wouldn't exist.
(I already posted this via the newsgroup a few hours ago, but it
doesn't show up.)
More information about the Digitalmars-d
mailing list