From be6da4f663a062353dd9a25baaae0ebcd68b7477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20S=C3=A9chet?= Date: Fri, 3 Mar 2023 12:08:51 +0000 Subject: Do not maintain root->prev in ph_remove. --- include/jemalloc/internal/ph.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/jemalloc/internal/ph.h b/include/jemalloc/internal/ph.h index 8ceadb90..0cc41eab 100644 --- a/include/jemalloc/internal/ph.h +++ b/include/jemalloc/internal/ph.h @@ -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) { ph->root = phn_next_get(phn, offset); - if (ph->root != NULL) { - phn_prev_set(ph->root, NULL, offset); - } return; } ph_merge_aux(ph, offset, cmp); -- cgit v1.2.1