about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-05-31 18:21:42 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-05-31 18:21:42 +0200
commitc5e8aaff4a73665ad9ee0231713a7b6068bf2547 (patch)
tree580fbdb15a94a17f469f1e85b4850ff32c3e8851 /src/librarian
parent2017ef192f49715783e0108d8d0ac4b826b0ac45 (diff)
downloadbox64-c5e8aaff4a73665ad9ee0231713a7b6068bf2547.tar.gz
box64-c5e8aaff4a73665ad9ee0231713a7b6068bf2547.zip
[DYNAREC] Addeddetection of libjvm (and an option to disable it) to apply conservative settings when loaded (should help #813) and probably other java based games/apps)
Diffstat (limited to 'src/librarian')
-rwxr-xr-xsrc/librarian/library.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index eb28ecb5..a74dea23 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -301,6 +301,11 @@ static int loadEmulatedLib(const char* libname, library_t *lib, box64context_t*
             box64_dynarec_bigblock = 0;
             box64_dynarec_strongmem = 1;
         }
+        if(libname && box64_dynarec_jvm && strstr(libname, "libjvm.so")) {
+            printf_log(LOG_INFO, "libjvm detected, disable Dynarec BigBlock and enable Dynarec StrongMem\n");
+            box64_dynarec_bigblock = 0;
+            box64_dynarec_strongmem = 1;
+        }
         #endif
         if(libname && box64_libcef && strstr(libname, "libcef.so")) {
             printf_log(LOG_INFO, "libcef detected, using malloc_hack_2\n");