Skip to content

Commit 598e81b

Browse files
committed
review comments
1 parent e108153 commit 598e81b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

turbopack/crates/turbo-tasks-backend/src/backend/operation/cleanup_old_edges.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)