File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
turbopack/crates/turbo-tasks-backend/src/backend Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,10 @@ impl TurboTasksBackendInner {
201201 unsafe { ExecuteContext :: new_with_tx ( self , tx, turbo_tasks) }
202202 }
203203
204- #[ inline]
205204 fn suspending_requested ( & self ) -> bool {
206205 ( self . in_progress_operations . load ( Ordering :: Relaxed ) & SNAPSHOT_REQUESTED_BIT ) != 0
207206 }
208207
209- #[ inline]
210208 fn operation_suspend_point ( & self , suspend : impl FnOnce ( ) -> AnyOperation ) {
211209 #[ cold]
212210 fn operation_suspend_point_cold (
Original file line number Diff line number Diff line change @@ -82,9 +82,10 @@ impl Operation for CleanupOldEdgesOperation {
8282 for & child_id in children. iter ( ) {
8383 task. remove ( & CachedDataItemKey :: Child { task : child_id } ) ;
8484 }
85+ let remove_children_count = u32:: try_from ( children. len ( ) ) . unwrap ( ) ;
8586 update ! ( task, ChildrenCount , |count: Option <u32 >| {
8687 // If this underflows, we messed up counting somewhere
87- let count = count. unwrap_or_default( ) - children . len ( ) as u32 ;
88+ let count = count. unwrap_or_default( ) - remove_children_count ;
8889 ( count != 0 ) . then_some( count)
8990 } ) ;
9091 if is_aggregating_node ( get_aggregation_number ( & task) ) {
You can’t perform that action at this time.
0 commit comments