Catching C++ std::exception in D
Dan Olson via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 14 21:28:43 PST 2015
David Nadlinger <code at klickverbot.at> writes:
> On Friday, 13 November 2015 at 18:40:06 UTC, Iain Buclaw wrote:
>> There may be a few other holes between how Fibers and EH interact.
>>
>> https://github.com/D-Programming-Language/druntime/commit/f6633abb43ea1f2464d3a772b8f8fe78216ffd8e
>
> The SJLJ stack switching should probably be added to this mechanism.
>
> — David
I did a quick experiment to merge the two approaches and it failed in
unittests. I am not sure why yet. They are implemented slightly
different in that SjLj context is saved in the Fiber object, whereas
_d_eh_swapContext is saving in a Thread.Context object.
More information about the Digitalmars-d
mailing list