From 597a7f5b5ba44c08ff38c9249a7cdc856f844e24 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 21 Jun 2023 12:51:06 +0200 Subject: [PATCH] [project] cross-platform launcher: correcting the `-XX:HeapDumpPath` value Unlike `-XX:ErrorFile`, it doesn't support the '%p' placeholder for PID, and having multiple heap dumps is bothersome. GitOrigin-RevId: 5a3954ba34b8ea8eab458f1d464079253464bc8d --- native/XPlatLauncher/src/default.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/XPlatLauncher/src/default.rs b/native/XPlatLauncher/src/default.rs index 701068e397a1..9fd856f0eca0 100644 --- a/native/XPlatLauncher/src/default.rs +++ b/native/XPlatLauncher/src/default.rs @@ -45,7 +45,7 @@ impl LaunchConfiguration for DefaultLaunchConfiguration { let user_home_path = get_user_home()?.to_string_checked()?; let slash = std::path::MAIN_SEPARATOR; vm_options.push(format!("-XX:ErrorFile={user_home_path}{slash}java_error_in_{}_%p.log", self.launcher_base_name)); - vm_options.push(format!("-XX:HeapDumpPath={user_home_path}{slash}java_error_in_{}_%p.hprof", self.launcher_base_name)); + vm_options.push(format!("-XX:HeapDumpPath={user_home_path}{slash}java_error_in_{}.hprof", self.launcher_base_name)); // collecting JVM options from user and distribution files self.collect_vm_options_from_files(&mut vm_options)?;