Unverified Commit f9fcae17 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

[Turbopack] fix hanging and flaky issues (#76032)

### What?

* fix active counting when balancing edges
* release lock correctly to avoid a deadlock
parent 5eec6df5
......@@ -1414,6 +1414,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
task.add_new(CachedDataItem::InProgress {
value: InProgressState::Scheduled { done_event },
});
drop(task);
// All `new_children` are currently hold active with an active count and we need to undo
// that. (We already filtered out the old children from that list)
......
......@@ -1114,7 +1114,7 @@ impl AggregationUpdateQueue {
if ctx.should_track_activeness() {
// update active count
let has_active_count =
get!(task, Activeness).is_some_and(|a| a.active_counter > 0);
get!(upper, Activeness).is_some_and(|a| a.active_counter > 0);
if has_active_count {
self.push(AggregationUpdateJob::IncreaseActiveCount {
task: task_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment