Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
560e14d8
Commit
560e14d8
authored
Sep 06, 2025
by
Tim Neutkens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add AI suggested fix
parent
a27fd1e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
mod.rs
turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
+10
-1
manager.rs
turbopack/crates/turbo-tasks/src/manager.rs
+5
-1
No files found.
turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
View file @
560e14d8
...
@@ -2022,7 +2022,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
...
@@ -2022,7 +2022,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
};
};
let
InProgressState
::
InProgress
(
box
InProgressStateInner
{
let
InProgressState
::
InProgress
(
box
InProgressStateInner
{
done_event
,
done_event
,
once_task
:
_
,
once_task
,
stale
,
stale
,
session_dependent
,
session_dependent
,
done
:
_
,
done
:
_
,
...
@@ -2138,6 +2138,15 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
...
@@ -2138,6 +2138,15 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
task
.shrink_to_fit
(
CachedDataItemType
::
CollectiblesDependency
);
task
.shrink_to_fit
(
CachedDataItemType
::
CollectiblesDependency
);
drop
(
task
);
drop
(
task
);
// ✅ ADD: Remove Once tasks from transient_tasks after completion
if
once_task
&&
!
stale
{
self
.transient_tasks
.remove
(
&
task_id
);
// CRITICAL: Return the task ID to the factory for reuse
unsafe
{
self
.transient_task_id_factory
.reuse
(
task_id
);
}
}
false
false
}
}
...
...
turbopack/crates/turbo-tasks/src/manager.rs
View file @
560e14d8
...
@@ -595,7 +595,11 @@ impl<B: Backend + 'static> TurboTasks<B> {
...
@@ -595,7 +595,11 @@ impl<B: Backend + 'static> TurboTasks<B> {
)
)
.await
?
;
.await
?
;
Ok
(
rx
.await
?
)
let
result
=
rx
.await
?
;
self
.dispose_root_task
(
task_id
);
Ok
(
result
)
}
}
pub
(
crate
)
fn
native_call
(
pub
(
crate
)
fn
native_call
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment