mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 00:23:33 +03:00
Extent -> Eset: Move fork handling.
This commit is contained in:
parent
77bbb35a92
commit
e144b21e4b
5 changed files with 28 additions and 27 deletions
15
src/eset.c
15
src/eset.c
|
|
@ -233,3 +233,18 @@ eset_fit_locked(tsdn_t *tsdn, eset_t *eset, size_t esize, size_t alignment) {
|
|||
|
||||
return extent;
|
||||
}
|
||||
|
||||
void
|
||||
eset_prefork(tsdn_t *tsdn, eset_t *eset) {
|
||||
malloc_mutex_prefork(tsdn, &eset->mtx);
|
||||
}
|
||||
|
||||
void
|
||||
eset_postfork_parent(tsdn_t *tsdn, eset_t *eset) {
|
||||
malloc_mutex_postfork_parent(tsdn, &eset->mtx);
|
||||
}
|
||||
|
||||
void
|
||||
eset_postfork_child(tsdn_t *tsdn, eset_t *eset) {
|
||||
malloc_mutex_postfork_child(tsdn, &eset->mtx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue