Skip to content

Ghidra is a software reverse engineering (SRE) framework

Code review tweaks

Ryan Kurtz8bc5229ed743
diff --git a/Ghidra/RuntimeScripts/Common/support/launch.properties b/Ghidra/RuntimeScripts/Common/support/launch.properties
index 972fc62eb4..b37c96867c 100644
--- a/Ghidra/RuntimeScripts/Common/support/launch.properties
+++ b/Ghidra/RuntimeScripts/Common/support/launch.properties
@@ -4,9 +4,8 @@
# NOTE: Ghidra requires a JDK to launch.
JAVA_HOME_OVERRIDE=
-# Required Ghidra class loader (forces class data sharing to be disabled...hide warning)
+# Required Ghidra class loader
VMARGS=-Djava.system.class.loader=ghidra.GhidraClassLoader
-VMARGS=-Xshare:off
# Set default encoding to UTF8
VMARGS=-Dfile.encoding=UTF8
@@ -78,6 +77,10 @@ VMARGS_MACOS=-Dapple.laf.useScreenMenuBar=false
# Prevent log4j from using the Jansi DLL on Windows.
VMARGS_WINDOWS=-Dlog4j.skipJansi=true
+# Custom class loader usage forces class data sharing to be disabled which produces a warning.
+# Ghidra does not use class data sharing, so explicitly turn it off to avoid the warning.
+VMARGS=-Xshare:off
+
# Persistent cache directory used by the application. This directory will be used to store
# persistent application caches for all users. The default location for Mac/Linux is the same as
# specified by java.io.tmpdir property. The default location for Windows corresponds to the