mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
Make ehooks_default_merge static (export was vestigial after merge fast-path removal)
This commit is contained in:
@@ -57,13 +57,6 @@ bool ehooks_default_purge_lazy_impl(void *addr, size_t offset, size_t length);
|
|||||||
bool ehooks_default_purge_forced_impl(void *addr, size_t offset, size_t length);
|
bool ehooks_default_purge_forced_impl(void *addr, size_t offset, size_t length);
|
||||||
#endif
|
#endif
|
||||||
bool ehooks_default_split_impl(void);
|
bool ehooks_default_split_impl(void);
|
||||||
/*
|
|
||||||
* Merge is the only default extent hook we declare -- see the comment in
|
|
||||||
* ehooks_merge.
|
|
||||||
*/
|
|
||||||
bool ehooks_default_merge(extent_hooks_t *extent_hooks, void *addr_a,
|
|
||||||
size_t size_a, void *addr_b, size_t size_b, bool committed,
|
|
||||||
unsigned arena_ind);
|
|
||||||
bool ehooks_default_merge_impl(tsdn_t *tsdn, void *addr_a, void *addr_b);
|
bool ehooks_default_merge_impl(tsdn_t *tsdn, void *addr_a, void *addr_b);
|
||||||
void ehooks_default_zero_impl(void *addr, size_t size);
|
void ehooks_default_zero_impl(void *addr, size_t size);
|
||||||
void ehooks_default_guard_impl(void *guard1, void *guard2);
|
void ehooks_default_guard_impl(void *guard1, void *guard2);
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ ehooks_default_merge_impl(tsdn_t *tsdn, void *addr_a, void *addr_b) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
static bool
|
||||||
ehooks_default_merge(extent_hooks_t *extent_hooks, void *addr_a, size_t size_a,
|
ehooks_default_merge(extent_hooks_t *extent_hooks, void *addr_a, size_t size_a,
|
||||||
void *addr_b, size_t size_b, bool committed, unsigned arena_ind) {
|
void *addr_b, size_t size_b, bool committed, unsigned arena_ind) {
|
||||||
tsdn_t *tsdn = tsdn_fetch();
|
tsdn_t *tsdn = tsdn_fetch();
|
||||||
|
|||||||
Reference in New Issue
Block a user