summaryrefslogtreecommitdiffstats
path: root/include/jemalloc
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-06-22 22:36:41 (GMT)
committerQi Wang <interwq@gmail.com>2017-06-23 20:27:53 (GMT)
commitd6eb8ac8f30745b06744ad5cb2988a392c4448cd (patch)
tree56777bab1a14ff8e0c5bbd96d08379eb9d87e65b /include/jemalloc
parentd49ac4c7096b79539ce84fa1bfe122bc9e3f1b43 (diff)
downloadjemalloc-d6eb8ac8f30745b06744ad5cb2988a392c4448cd.zip
jemalloc-d6eb8ac8f30745b06744ad5cb2988a392c4448cd.tar.gz
jemalloc-d6eb8ac8f30745b06744ad5cb2988a392c4448cd.tar.bz2
Set reentrancy when invoking customized extent hooks.
Customized extent hooks may malloc / free thus trigger reentry. Support this behavior by adding reentrancy on hook functions.
Diffstat (limited to 'include/jemalloc')
-rw-r--r--include/jemalloc/internal/base_externs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/base_externs.h b/include/jemalloc/internal/base_externs.h
index 0a1114f..a4fd5ac 100644
--- a/include/jemalloc/internal/base_externs.h
+++ b/include/jemalloc/internal/base_externs.h
@@ -3,7 +3,7 @@
base_t *b0get(void);
base_t *base_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks);
-void base_delete(base_t *base);
+void base_delete(tsdn_t *tsdn, base_t *base);
extent_hooks_t *base_extent_hooks_get(base_t *base);
extent_hooks_t *base_extent_hooks_set(base_t *base,
extent_hooks_t *extent_hooks);