mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 18:47:19 +03:00
Add a test-case for small profiled allocations
Validate that small allocations (i.e. those with `size <= SC_SMALL_MAXCLASS`) which are sampled for profiling maintain the expected invariants even though they now take up less space.
This commit is contained in:
parent
5a858c64d6
commit
ebd7e99f5c
3 changed files with 85 additions and 0 deletions
6
test/unit/prof_small.sh
Normal file
6
test/unit/prof_small.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "x${enable_prof}" = "x1" ] ; then
|
||||
export MALLOC_CONF="prof:true,lg_prof_sample:0"
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue