From e245dee90b431532fd6fb2296e66f4e03c17095c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 9 Sep 2023 16:26:50 +0200 Subject: [DYNAREC] Small improvment on multi-thread reliance for the jumptable --- src/custommem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/custommem.c') diff --git a/src/custommem.c b/src/custommem.c index a92f9831..3ec46783 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -748,7 +748,7 @@ void setJumpTableDefault64(void* addr) if(box64_jmptbl3[idx3][idx2][idx1] == box64_jmptbldefault0) return; idx0 = (((uintptr_t)addr) )&JMPTABLE_MASK0; - box64_jmptbl3[idx3][idx2][idx1][idx0] = (uintptr_t)native_next; + native_lock_store_dd(&box64_jmptbl3[idx3][idx2][idx1][idx0], (uintptr_t)native_next); } void setJumpTableDefaultRef64(void* addr, void* jmp) { -- cgit 1.4.1