mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] launcher: limiting the number of allocation arenas only on Linux/glibc (JBR-1837)
GitOrigin-RevId: 27ef8550d77248e9db3dcce35778cbfdba33fa44
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a66e19df97
commit
cda43b70ca
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user