about summary refs log tree commit diff stats
path: root/src/include
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-04-16 10:50:12 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-04-16 10:50:12 +0200
commit3adf31c85b8bb4366d063fbe8f7d9fc36084366d (patch)
tree42d8fb12e6079f362c54226a862cabd8b1980ad9 /src/include
parent9b2c6caf22e6dc91ad72f4d90116b80237bd3487 (diff)
downloadbox64-3adf31c85b8bb4366d063fbe8f7d9fc36084366d.tar.gz
box64-3adf31c85b8bb4366d063fbe8f7d9fc36084366d.zip
[DYNAREC] General fixes and improvment for multithread and jit program. Helps Java, mono and Unity3d program... (should help #519, #464, #433, #272, #232, #193, #112...)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/custommem.h1
-rwxr-xr-xsrc/include/dynablock.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h
index 5f9164f3..e7623db2 100644
--- a/src/include/custommem.h
+++ b/src/include/custommem.h
@@ -26,6 +26,7 @@ void addDBFromAddressRange(uintptr_t addr, size_t size);
 void cleanDBFromAddressRange(uintptr_t addr, size_t size, int destroy);
 
 dynablock_t* getDB(uintptr_t idx);
+int getNeedTest(uintptr_t idx);
 int addJumpTableIfDefault64(void* addr, void* jmp); // return 1 if write was succesfull
 int setJumpTableIfRef64(void* addr, void* jmp, void* ref); // return 1 if write was succesfull
 void setJumpTableDefault64(void* addr);
diff --git a/src/include/dynablock.h b/src/include/dynablock.h
index 1868deea..4e9d0b36 100755
--- a/src/include/dynablock.h
+++ b/src/include/dynablock.h
@@ -9,6 +9,8 @@ void FreeDynablock(dynablock_t* db, int need_lock);
 void MarkDynablock(dynablock_t* db);
 void MarkRangeDynablock(dynablock_t* db, uintptr_t addr, uintptr_t size);
 int FreeRangeDynablock(dynablock_t* db, uintptr_t addr, uintptr_t size);
+void FreeInvalidDynablock(dynablock_t* db, int need_lock);
+dynablock_t* InvalidDynablock(dynablock_t* db, int need_lock);
 
 dynablock_t* FindDynablockFromNativeAddress(void* addr);    // defined in box64context.h