mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-14 00:46:21 +03:00
Extract fork orchestration into jemalloc_fork module
This commit is contained in:
parent
ec07fc3c5f
commit
ba1e2fe4db
15 changed files with 211 additions and 180 deletions
8
include/jemalloc/internal/jemalloc_fork.h
Normal file
8
include/jemalloc/internal/jemalloc_fork.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef JEMALLOC_INTERNAL_JEMALLOC_FORK_H
|
||||
#define JEMALLOC_INTERNAL_JEMALLOC_FORK_H
|
||||
|
||||
void jemalloc_prefork(void);
|
||||
void jemalloc_postfork_parent(void);
|
||||
void jemalloc_postfork_child(void);
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_JEMALLOC_FORK_H */
|
||||
|
|
@ -57,9 +57,6 @@ void *bootstrap_malloc(size_t size);
|
|||
void *bootstrap_calloc(size_t num, size_t size);
|
||||
void bootstrap_free(void *ptr);
|
||||
size_t batch_alloc(void **ptrs, size_t num, size_t size, int flags);
|
||||
void jemalloc_prefork(void);
|
||||
void jemalloc_postfork_parent(void);
|
||||
void jemalloc_postfork_child(void);
|
||||
void sdallocx_default(void *ptr, size_t size, int flags);
|
||||
void free_default(void *ptr);
|
||||
void *malloc_default(size_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue