mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-02 11:57:17 +03:00
Add JEMALLOC_COLD, and mark some functions cold.
This hints to the compiler that it should care more about space than CPU (among other things). In cases where the compiler lacks profile-guided information, this can be a substantial space savings. For now, we mark the mallctl or atexit driven profiling and stats functions that take up the most space.
This commit is contained in:
parent
5d8e70ab26
commit
a9fa2defdb
7 changed files with 36 additions and 1 deletions
|
|
@ -321,6 +321,7 @@ x2s(uintmax_t x, bool alt_form, bool uppercase, char *s, size_t *slen_p) {
|
|||
return s;
|
||||
}
|
||||
|
||||
JEMALLOC_COLD
|
||||
size_t
|
||||
malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
|
||||
size_t i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue