From c788a0122800bf94f36b56a009c2980e8b34d7f9 Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Thu, 4 Nov 2021 07:12:23 -0400 Subject: [PATCH] GP-0: Updating MAXMEM comments in launch .bat scripts --- Ghidra/RuntimeScripts/Windows/ghidraRun.bat | 10 +++------- Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Ghidra/RuntimeScripts/Windows/ghidraRun.bat b/Ghidra/RuntimeScripts/Windows/ghidraRun.bat index 960c9e165f..d9ebaad7f2 100644 --- a/Ghidra/RuntimeScripts/Windows/ghidraRun.bat +++ b/Ghidra/RuntimeScripts/Windows/ghidraRun.bat @@ -3,13 +3,9 @@ @echo off setlocal -:: 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 call "%~dp0support\launch.bat" bg Ghidra "%MAXMEM%" "" ghidra.GhidraRun %* diff --git a/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat b/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat index 8f296c739c..0cb441162d 100644 --- a/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat +++ b/Ghidra/RuntimeScripts/Windows/support/ghidraDebug.bat @@ -3,13 +3,9 @@ @echo off setlocal -:: 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