From 8459ea0d31a851e847318273233c9a8b2b079eae Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 31 Oct 2022 12:05:04 +0100 Subject: Remove dynablocklist (#438) * [DYNAREC] Removed dynablock sons handling * [DYNAREC] Removed dynablocklist, and attached dynablocks to the jumptable * [DYNAREC] Changed handling of HotPage (part of Protection now) * [DYNAREC] Fixed some performance issues (especially with heavily threaded programs) --- src/libtools/threads.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libtools/threads.c') diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 01f3a7c4..88c56ed9 100755 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -505,8 +505,7 @@ EXPORT int my_pthread_create(x64emu_t *emu, void* t, void* attr, void* start_rou #ifdef DYNAREC if(box64_dynarec) { // pre-creation of the JIT code for the entry point of the thread - dynablock_t *current = NULL; - DBGetBlock(emu, (uintptr_t)start_routine, 1, ¤t); + DBGetBlock(emu, (uintptr_t)start_routine, 1); } #endif // create thread @@ -527,8 +526,7 @@ void* my_prepare_thread(x64emu_t *emu, void* f, void* arg, int ssize, void** pet et->arg = arg; #ifdef DYNAREC // pre-creation of the JIT code for the entry point of the thread - dynablock_t *current = NULL; - DBGetBlock(emu, (uintptr_t)f, 1, ¤t); + DBGetBlock(emu, (uintptr_t)f, 1); #endif *pet = et; return pthread_routine; -- cgit 1.4.1