summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Séchet <deadalnix@gmail.com>2023-03-03 12:08:51 +0000
committerQi Wang <interwq@gmail.com>2023-03-31 14:34:57 -0700
commitbe6da4f663a062353dd9a25baaae0ebcd68b7477 (patch)
tree104369fb824f1be3498cf7d3b9ab135254c3c7f7
parent543e2d61e6047208d647cf3fd3499bead3bcc23e (diff)
downloadjemalloc-be6da4f663a062353dd9a25baaae0ebcd68b7477.tar.gz
Do not maintain root->prev in ph_remove.
-rw-r--r--include/jemalloc/internal/ph.h3
1 files changed, 0 insertions, 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);