mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Do not maintain root->prev in ph_remove.
This commit is contained in:
@@ -380,9 +380,6 @@ ph_remove(ph_t *ph, void *phn, size_t offset, ph_cmp_t cmp) {
|
|||||||
*/
|
*/
|
||||||
if (phn_lchild_get(phn, offset) == NULL) {
|
if (phn_lchild_get(phn, offset) == NULL) {
|
||||||
ph->root = phn_next_get(phn, offset);
|
ph->root = phn_next_get(phn, offset);
|
||||||
if (ph->root != NULL) {
|
|
||||||
phn_prev_set(ph->root, NULL, offset);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ph_merge_aux(ph, offset, cmp);
|
ph_merge_aux(ph, offset, cmp);
|
||||||
|
|||||||
Reference in New Issue
Block a user