about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
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");