mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-25 21:35:42 +03:00
Rename most remaining *chunk* APIs to *extent*.
This commit is contained in:
parent
0c4932eb1e
commit
22588dda6e
19 changed files with 1153 additions and 1161 deletions
|
|
@ -1067,7 +1067,7 @@ malloc_conf_init(void)
|
|||
for (i = 0; i < dss_prec_limit; i++) {
|
||||
if (strncmp(dss_prec_names[i], v, vlen)
|
||||
== 0) {
|
||||
if (chunk_dss_prec_set(NULL,
|
||||
if (extent_dss_prec_set(NULL,
|
||||
i)) {
|
||||
malloc_conf_error(
|
||||
"Error setting dss",
|
||||
|
|
@ -2686,7 +2686,7 @@ _malloc_prefork(void)
|
|||
}
|
||||
}
|
||||
base_prefork(tsd_tsdn(tsd));
|
||||
chunk_prefork(tsd_tsdn(tsd));
|
||||
extent_prefork(tsd_tsdn(tsd));
|
||||
for (i = 0; i < narenas; i++) {
|
||||
if ((arena = arena_get(tsd_tsdn(tsd), i, false)) != NULL)
|
||||
arena_prefork3(tsd_tsdn(tsd), arena);
|
||||
|
|
@ -2715,7 +2715,7 @@ _malloc_postfork(void)
|
|||
|
||||
witness_postfork_parent(tsd);
|
||||
/* Release all mutexes, now that fork() has completed. */
|
||||
chunk_postfork_parent(tsd_tsdn(tsd));
|
||||
extent_postfork_parent(tsd_tsdn(tsd));
|
||||
base_postfork_parent(tsd_tsdn(tsd));
|
||||
for (i = 0, narenas = narenas_total_get(); i < narenas; i++) {
|
||||
arena_t *arena;
|
||||
|
|
@ -2740,7 +2740,7 @@ jemalloc_postfork_child(void)
|
|||
|
||||
witness_postfork_child(tsd);
|
||||
/* Release all mutexes, now that fork() has completed. */
|
||||
chunk_postfork_child(tsd_tsdn(tsd));
|
||||
extent_postfork_child(tsd_tsdn(tsd));
|
||||
base_postfork_child(tsd_tsdn(tsd));
|
||||
for (i = 0, narenas = narenas_total_get(); i < narenas; i++) {
|
||||
arena_t *arena;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue