Project

General

Profile

« Previous | Next » 

Revision 853d91a0

Added by Lars Kanis over 5 years ago

Fix coroutine support on win32

Ruby master branch currently fails on win32 MINGW at this spec:
https://github.com/ruby/spec/blob/master/core/thread/element_set_spec.rb

MINGW makes use of setjmp3() implemented in MSVCRT.DLL.
This function traverses the SEH list up to a terminating pointer 0xFFFFFFFF.
It therefore currently segfaults on NULL.
The SEH linked list must be terminated by 0xFFFFFFFF instead of NULL.

This fixes the issue mentioned here:
https://github.com/ruby/ruby/pull/2279#issuecomment-509508810