mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-17 16:11:42 +03:00
Track extent structure serial number (esn) in extent_t.
This enables stable sorting of extent_t structures.
This commit is contained in:
parent
69aa552809
commit
76b35f4b2f
7 changed files with 121 additions and 48 deletions
|
|
@ -154,10 +154,10 @@ TEST_BEGIN(test_base_hooks_not_null) {
|
|||
* that the first block's remaining space is considered for subsequent
|
||||
* allocation.
|
||||
*/
|
||||
assert_zu_ge(extent_size_get(&base->blocks->extent), QUANTUM,
|
||||
assert_zu_ge(extent_bsize_get(&base->blocks->extent), QUANTUM,
|
||||
"Remainder insufficient for test");
|
||||
/* Use up all but one quantum of block. */
|
||||
while (extent_size_get(&base->blocks->extent) > QUANTUM) {
|
||||
while (extent_bsize_get(&base->blocks->extent) > QUANTUM) {
|
||||
p = base_alloc(tsdn, base, QUANTUM, QUANTUM);
|
||||
assert_ptr_not_null(p, "Unexpected base_alloc() failure");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue