mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-08 23:07:20 +03:00
Make eligible functions static
The codebase is already very disciplined in making any function which can be `static`, but there are a few that appear to have slipped through the cracks.
This commit is contained in:
parent
6841110bd6
commit
70344a2d38
9 changed files with 16 additions and 14 deletions
|
|
@ -43,6 +43,8 @@ static edata_t *extent_try_coalesce(tsdn_t *tsdn, pac_t *pac, ehooks_t *ehooks,
|
|||
static edata_t *extent_alloc_retained(tsdn_t *tsdn, pac_t *pac,
|
||||
ehooks_t *ehooks, edata_t *expand_edata, size_t size, size_t alignment,
|
||||
bool zero, bool *commit, bool guarded);
|
||||
static bool extent_decommit_wrapper(tsdn_t *tsdn, ehooks_t *ehooks,
|
||||
edata_t *edata, size_t offset, size_t length);
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
|
|
@ -1118,7 +1120,7 @@ extent_commit_wrapper(tsdn_t *tsdn, ehooks_t *ehooks, edata_t *edata,
|
|||
/* growing_retained */ false);
|
||||
}
|
||||
|
||||
bool
|
||||
static bool
|
||||
extent_decommit_wrapper(tsdn_t *tsdn, ehooks_t *ehooks, edata_t *edata,
|
||||
size_t offset, size_t length) {
|
||||
witness_assert_depth_to_rank(tsdn_witness_tsdp_get(tsdn),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue