Skip to content

Commit

Permalink
Merge branch 'main' into niklasmischkulnig/pack-411-fs-and-vm-async-c…
Browse files Browse the repository at this point in the history
…hunk
  • Loading branch information
mischnic authored Jul 16, 2024
2 parents 05e0d79 + 99119e2 commit 4a91251
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
24 changes: 11 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions crates/turbo-tasks-memory/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1621,22 +1621,22 @@ impl Task {
}
state.gc.generation = None;

if active {
let mut cells_to_drop = Vec::new();

match &mut state.state_type {
TaskStateType::Done { stateful, edges: _ } => {
if *stateful {
return GcResult::NotPossible;
}
}
TaskStateType::Dirty { .. } => {}
_ => {
// GC can't run in this state. We will reschedule it when the execution
// completes.
match &mut state.state_type {
TaskStateType::Done { stateful, edges: _ } => {
if *stateful {
return GcResult::NotPossible;
}
}
TaskStateType::Dirty { .. } => {}
_ => {
// GC can't run in this state. We will reschedule it when the execution
// completes.
return GcResult::NotPossible;
}
}

if active {
let mut cells_to_drop = Vec::new();

// shrinking memory and dropping cells
state.aggregation_node.shrink_to_fit();
Expand Down

0 comments on commit 4a91251

Please sign in to comment.