[lts-active] [turbopack] Fix two GC paths that leave half-torn-down dependency edges (#100209)
Backports [[turbopack] Fix two GC paths that leave half-torn-down dependency edges (#99902)](https://github.com/vercel/next.js/pull/99902) to `releases/lts/active`. Builds on #100002, which brought over the snapshot rework (#99644, #99649) that this fix depends on. ## Conflict resolution `storage.rs` conflicted because #99747 (capture snapshot pending bits under exclusion) is not on this branch. The fix itself applies unchanged. The resolution only adjusts the surrounding code: - The snapshot scan takes #99902's loop as-is. The shard guard is already a write lock, so switching from `iter()` to `iter_mut()` is safe. - Added only the `is_deleted_new_task` helper. `debug_assert_persistable` does not exist on this branch. - Ported the three new storage tests to the `storage.take_snapshot(..)` method form. Dropped one `any_snapshot_pending()` assert, because that helper only exists after #99747. <!-- NEXT_JS_LLM -->
Showing
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment