[article] Language Design Deal Breakers

Walter Bright newshound2 at digitalmars.com
Tue May 28 10:05:22 PDT 2013


On 5/28/2013 7:48 AM, deadalnix wrote:
> On Tuesday, 28 May 2013 at 13:35:01 UTC, David Nadlinger wrote:
>> On Tuesday, 28 May 2013 at 08:02:46 UTC, Walter Bright wrote:
>>> On 5/28/2013 12:06 AM, Don wrote:
>>>> On Sunday, 26 May 2013 at 18:43:30 UTC, Walter Bright wrote:
>>>>> Fibers should be implemented by mapping a 4K page with no access rights at the
>>>>> end of each stack.
>>>>
>>>> We do that in our code. Fibers are virtually unusable without it, it is
>>>> incredibly easy to get a stack overflow, and they are horrible to debug.
>>>
>>> Dang, that needs to get folded into D2!
>>
>> I'm 100% sure we already do this for Windows, as I've had my share of fun with
>> the Fiber implementation there. Might not be the case for the various Posixen,
>> though.
>>
>> David
>
> Not tested on windows, but can repro on OSX and linux.

So if the guard page is implemented, why are you having problems debugging stack 
overflows?


More information about the Digitalmars-d mailing list