diff options
| author | Jason Evans <je@facebook.com> | 2010-10-22 17:45:59 (GMT) |
|---|---|---|
| committer | Jason Evans <je@facebook.com> | 2010-10-22 17:45:59 (GMT) |
| commit | e4f7846f1fd279a039ffa2a41707348187219de4 (patch) | |
| tree | de5d7259853731fe762c9827c3a12c33ecd305f2 /test/aligned_alloc.c | |
| parent | 81b4e6eb6f06cac048e3743787a70676f1534269 (diff) | |
| download | jemalloc-e4f7846f1fd279a039ffa2a41707348187219de4.zip jemalloc-e4f7846f1fd279a039ffa2a41707348187219de4.tar.gz jemalloc-e4f7846f1fd279a039ffa2a41707348187219de4.tar.bz2 | |
Fix heap profiling bugs.
Fix a regression due to the recent heap profiling accuracy improvements:
prof_{m,re}alloc() must set the object's profiling context regardless of
whether it is sampled.
Fix management of the CHUNK_MAP_CLASS chunk map bits, such that all
large object (re-)allocation paths correctly initialize the bits. Prior
to this fix, in-place realloc() cleared the bits, resulting in incorrect
reported object size from arena_salloc_demote(). After this fix the
non-demoted bit pattern is all zeros (instead of all ones), which makes
it easier to assure that the bits are properly set.
Diffstat (limited to 'test/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions
