Repository navigation
Commit 34762d6
committed
fix(octane): restore retirement stamp in detachDeoptTreeRefs for non-transactional teardown
The perf commit dropped the root-level retireEventHostTree call from
detachDeoptTreeRefs, assuming all blockless de-opt removals route
through deferRootRange. Several paths still detach hosts immediately
outside a root transaction: clearChildContent's non-deferred sweep,
clone() adoption replaceChild/replaceChildren, unmountSlot's hostNode
teardown, and multiple reconciler else-branches. A focused host on
those paths dispatches focusout synchronously without retirement,
letting its handler fire on a stale node.
Restore the root-only retirement stamp so every teardown call
(out === null) retires the subtree root before detach. The
transactional path double-retires harmlessly (idempotent epoch bump).1 parent 29ba34b commit 34762d6
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44438 | 44438 | | |
44439 | 44439 | | |
44440 | 44440 | | |
| 44441 | + | |
| 44442 | + | |
44441 | 44443 | | |
| 44444 | + | |
| 44445 | + | |
44442 | 44446 | | |
44443 | 44447 | | |
44444 | 44448 | | |
| |||
44472 | 44476 | | |
44473 | 44477 | | |
44474 | 44478 | | |
44475 | | - | |
| 44479 | + | |
44476 | 44480 | | |
44477 | 44481 | | |
44478 | 44482 | | |
| |||
0 commit comments