https://bugs.winehq.org/show_bug.cgi?id=43966
--- Comment #9 from Ken Thomases ken@codeweavers.com --- (In reply to VitorMM from comment #8)
So these lines from libs/wine/ldt.c #define LDT_FIRST_ENTRY 512 #define LDT_SIZE 8192
Should instead be like for macOS? #define LDT_FIRST_ENTRY 3 #define LDT_SIZE 127
Just to confirm.
Yes, basically. I wouldn't bother changing LDT_SIZE. If Wine tries values past what the OS supports, it will just fail in a slightly different way than if it knows it has exhausted the limit. Either way, that would only affect processes with many threads.