Stack frames larger than 4K should be rejected, but what if I want more

Vladimir Panteleev thecybershadow.lists at gmail.com
Tue Jun 29 04:00:24 UTC 2021


On Sunday, 27 June 2021 at 18:56:57 UTC, IGotD- wrote:
> This is a breakout thread from this thread.
>
> https://forum.dlang.org/thread/ghodronzxeirokyoqeag@forum.dlang.org
>
> According to the comment from Walter.
>
> *As per Walter's recent comment in that thread, he asserts that 
> stack allocations beyond 4k should be rejected.*
>
> in this issue:
> https://issues.dlang.org/show_bug.cgi?id=17566

I recall that Pascal debug builds added manual checks for stack 
overflow. This was especially necessary in real mode, where a 
stack overflow would just crash the PC. I don't see why D 
couldn't do the same. It would be useful in protected mode with 
small variables too, as it would allow generating a normal D 
exception instead of a segmentation fault.



More information about the Digitalmars-d mailing list