mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Remove the swap feature.
Remove the swap feature, which enabled per application swap files. In practice this feature has not proven itself useful to users.
This commit is contained in:
@@ -610,9 +610,6 @@ malloc_conf_init(void)
|
||||
CONF_HANDLE_BOOL(prof_gdump)
|
||||
CONF_HANDLE_BOOL(prof_leak)
|
||||
}
|
||||
if (config_swap) {
|
||||
CONF_HANDLE_BOOL(overcommit)
|
||||
}
|
||||
malloc_conf_error("Invalid conf pair", k, klen, v,
|
||||
vlen);
|
||||
#undef CONF_HANDLE_BOOL
|
||||
@@ -1629,9 +1626,6 @@ jemalloc_prefork(void)
|
||||
|
||||
if (config_dss)
|
||||
malloc_mutex_lock(&dss_mtx);
|
||||
|
||||
if (config_swap)
|
||||
malloc_mutex_lock(&swap_mtx);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1641,9 +1635,6 @@ jemalloc_postfork(void)
|
||||
|
||||
/* Release all mutexes, now that fork() has completed. */
|
||||
|
||||
if (config_swap)
|
||||
malloc_mutex_unlock(&swap_mtx);
|
||||
|
||||
if (config_dss)
|
||||
malloc_mutex_unlock(&dss_mtx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user