[platform] launcher: limiting the number of allocation arenas only on Linux/glibc (JBR-1837)

GitOrigin-RevId: 27ef8550d77248e9db3dcce35778cbfdba33fa44
This commit is contained in:
Roman Shevchenko
2024-06-11 12:35:59 +00:00
committed by intellij-monorepo-bot
parent a66e19df97
commit cda43b70ca
+1 -1
View File
@@ -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 {