Open aivve opened 2 years ago
For arm mac cpu's need to rewrite Dispatcher
Regarding the above comment, the change would require writing arm64 asm code?
Maybe not necessarily asm, perhaps something like Android version
Rewrote asm code but only got segmentation fault.
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
frame #0: 0x0000000000000000
error: memory read failed for 0x0
The size of pthread_mutex_t for some reason is 64 whereas on arm64 it should be 48 ??
After df8d9d9f4a5fbfaa6edaea965b11415164252fc3 it catchers the error:
ERROR Exception: Dispatcher::getReusableContext, swapcontext failed, result=22, Invalid argument
not crashes but exits
same exception is caught on lastest Dispatcher version, also replaced context functions by using ucontext.h with the same result