8 Dec
2025
8 Dec
'25
10:51 p.m.
`start_thread()` jumps to PE code, then we need the Unix call so GSBASE gets set. Also, the PE function lets us handle a syscall fault. I'm not sure I follow what the alternative would be.
I might be misunderstanding things, but couldn't we just create the Wine thread but then never jump to PE code? If I'm reading correctly, nothing we want a Wine thread for actually requires PE code to have ever run in the process. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9579#note_125246