Closed apolukhin closed 3 years ago
So MacOS uses setjump/long jump for exception handling implementation?
So MacOS uses setjump/long jump for exception handling implementation?
Not sure. Just showing a patch and my guesses why it does a proper change
ty - could you check branch develop, please
Testing of the develop branch can not happen soon due to specifics of our development.
However, there's now no diff between develop branch of context and the version that we use. Seems good!
Many thanks!
I've found this fix in our codebase. Not sure how it works, but my guess is following:
__PTK_LIBC_DYLD_Unwind_SjLj_Key
is defined in https://opensource.apple.com/source/libpthread/libpthread-137.1.1/private/tsd_private.h as#define __PTK_LIBC_DYLD_Unwind_SjLj_Key 18
. Multiplying it on a size of a pointer gives72
.P.S.: it already was
72
before https://github.com/boostorg/context/commit/763f28542d3c2931ead6eef1409b113155e9a1c9