From cda43b70cac8203906feab0d0fc35848524e3118 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 11 Jun 2024 14:11:24 +0200 Subject: [PATCH] [platform] launcher: limiting the number of allocation arenas only on Linux/glibc (JBR-1837) GitOrigin-RevId: 27ef8550d77248e9db3dcce35778cbfdba33fa44 --- native/XPlatLauncher/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/XPlatLauncher/src/lib.rs b/native/XPlatLauncher/src/lib.rs index 6f6f8f46771c..148afc87133b 100644 --- a/native/XPlatLauncher/src/lib.rs +++ b/native/XPlatLauncher/src/lib.rs @@ -117,7 +117,7 @@ fn main_impl(exe_path: PathBuf, remote_dev: bool, debug_mode: bool, sandbox_subp ensure_env_vars_set()?; } - #[cfg(target_os = "linux")] + #[cfg(all(target_os = "linux", target_env = "gnu"))] { // on Linux, glibc allocates arenas too aggressively if unsafe { libc::mallopt(libc::M_ARENA_MAX, 1) } == 0 {