Ghidra is a software reverse engineering (SRE) framework
GP-0: Updating MAXMEM comments in launch .bat scripts
Ryan Kurtzc788a0122800
diff --git a/Ghidra/RuntimeScripts/Windows/ghidraRun.bat b/Ghidra/RuntimeScripts/Windows/ghidraRun.batindex 960c9e165f..d9ebaad7f2 100644--- a/Ghidra/RuntimeScripts/Windows/ghidraRun.bat+++ b/Ghidra/RuntimeScripts/Windows/ghidraRun.bat@@ -3,13 +3,9 @@@echo offsetlocal-:: Maximum heap memory size-:: Default for Windows 32-bit is 768M and 64-bit is 1024M-:: Raising the value too high may cause a silent failure where-:: Ghidra fails to launch.-:: Uncomment MAXMEM setting if non-default value is needed--::set MAXMEM=768M+:: Maximum heap memory may be changed if default is inadequate. This will generally be up to 1/4 of+:: the physical memory available to the OS. Uncomment MAXMEM setting if non-default value is needed.+::set MAXMEM=2Gcall "%~dp0support\launch.bat" bg Ghidra "%MAXMEM%" "" ghidra.GhidraRun %*diff --git a/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat b/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.batindex 8f296c739c..0cb441162d 100644--- a/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat+++ b/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat@@ -3,13 +3,9 @@@echo offsetlocal-:: Maximum heap memory size-:: Default for Windows 32-bit is 768M and 64-bit is 1024M-:: Raising the value too high may cause a silent failure where-:: Ghidra fails to launch.-:: Uncomment MAXMEM setting if non-default value is needed--::set MAXMEM=768M+:: Maximum heap memory may be changed if default is inadequate. This will generally be up to 1/4 of+:: the physical memory available to the OS. Uncomment MAXMEM setting if non-default value is needed.+::set MAXMEM=2G:: Debug launch mode can be changed to one of the following::: debug, debug-suspend