mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-12 19:57:17 +03:00
prof_log: cassert(config_prof) in public functions
This lets the compiler infer that the code is dead in builds where profiling is enabled, saving on space there.
This commit is contained in:
parent
526180b76d
commit
83cad746ae
2 changed files with 14 additions and 1 deletions
|
|
@ -141,7 +141,9 @@ TEST_END
|
|||
|
||||
int
|
||||
main(void) {
|
||||
prof_log_dummy_set(true);
|
||||
if (config_prof) {
|
||||
prof_log_dummy_set(true);
|
||||
}
|
||||
return test_no_reentrancy(
|
||||
test_prof_log_many_logs,
|
||||
test_prof_log_many_traces,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue