HomeFreeBSD

tdestroy: don't visit one-child node twice

Description

tdestroy: don't visit one-child node twice

Change tdestroy() to immediately free a node with no right child as
soon as it is encountered. Currently, such nodes are visited twice
before deletion.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D54699

Details

Provenance
dougmAuthored on Jan 16 2026, 10:26 PM
Reviewer
kib
Differential Revision
D54699: tdestroy: don't visit one-child node twice
Parents
rG689663d4654f: Initialize CLOCK_UPTIME for itmer events
Branches
Unknown
Tags
Unknown