Skip to content

Ghidra is a software reverse engineering (SRE) framework

let launch.properties file decide whether to use -Xshare:off

Ryosuke Takahashi4677edfc70d6
diff --git a/Ghidra/RuntimeScripts/Linux/support/bsim_ctl b/Ghidra/RuntimeScripts/Linux/support/bsim_ctl
index 13edf3b316..2df6745b1d 100755
--- a/Ghidra/RuntimeScripts/Linux/support/bsim_ctl
+++ b/Ghidra/RuntimeScripts/Linux/support/bsim_ctl
@@ -17,8 +17,4 @@ VMARG_LIST="-Djava.awt.headless=true "
SCRIPT_FILE="$(readlink -f "$0" 2>/dev/null || readlink "$0" 2>/dev/null || echo "$0")"
SCRIPT_DIR="${SCRIPT_FILE%/*}"
-# Some JVM's with class data sharing enabled have issues with BSim starting with Ghidra's custom
-# classloader, so we will disable sharing
-VMARG_LIST+="-Xshare:off"
-
${SCRIPT_DIR}/launch.sh $LAUNCH_MODE jdk "BSimControl" $MAXMEM "${VMARG_LIST}" ghidra.features.bsim.query.BSimControlLaunchable "$@"