diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-03-18 11:57:44 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-03-18 11:57:44 +0100 |
| commit | febcc8995dddf17c814c5e64869a43f55fd80038 (patch) | |
| tree | b24d19b262c7fd86fe8c53a5521621ae70ad83c5 | |
| parent | 72cc87b0125de48debc9609f1e95f0057638d23f (diff) | |
| download | box64-febcc8995dddf17c814c5e64869a43f55fd80038.tar.gz box64-febcc8995dddf17c814c5e64869a43f55fd80038.zip | |
Removed an optim on TLS, it break things (fix regression on exiting many games, like Valheim)
| -rwxr-xr-x | src/emu/x64tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x64tls.c b/src/emu/x64tls.c index 8ce3affe..15279fb0 100755 --- a/src/emu/x64tls.c +++ b/src/emu/x64tls.c @@ -274,7 +274,7 @@ static void* resizeTLSData(box64context_t *context, void* oldptr) tlsdatasize_t* getTLSData(box64context_t *context) { - static __thread tlsdatasize_t* ptr = NULL; + tlsdatasize_t* ptr = NULL; if(!ptr) if ((ptr = (tlsdatasize_t*)pthread_getspecific(context->tlskey)) == NULL) { ptr = (tlsdatasize_t*)fillTLSData(context); |