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
12da0026
Commit
12da0026
authored
Mar 06, 2026
by
Benjamin Woodruff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove AtomicBool from local_is_partial
parent
89e6db9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mod.rs
turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
+2
-2
mod.rs
...k/crates/turbo-tasks-backend/src/backend/operation/mod.rs
+1
-1
No files found.
turbopack/crates/turbo-tasks-backend/src/backend/mod.rs
View file @
12da0026
...
@@ -183,7 +183,7 @@ struct TurboTasksBackendInner<B: BackingStorage> {
...
@@ -183,7 +183,7 @@ struct TurboTasksBackendInner<B: BackingStorage> {
storage
:
Storage
,
storage
:
Storage
,
/// When true, the backing_storage has data that is not in the local storage.
/// When true, the backing_storage has data that is not in the local storage.
local_is_partial
:
AtomicB
ool
,
local_is_partial
:
b
ool
,
/// Number of executing operations + Highest bit is set when snapshot is
/// Number of executing operations + Highest bit is set when snapshot is
/// requested. When that bit is set, operations should pause until the
/// requested. When that bit is set, operations should pause until the
...
@@ -258,7 +258,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
...
@@ -258,7 +258,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
),
),
persisted_task_cache_log
:
need_log
.then
(||
Sharded
::
new
(
shard_amount
)),
persisted_task_cache_log
:
need_log
.then
(||
Sharded
::
new
(
shard_amount
)),
task_cache
:
FxDashMap
::
default
(),
task_cache
:
FxDashMap
::
default
(),
local_is_partial
:
AtomicBool
::
new
(
next_task_id
!=
TaskId
::
MIN
)
,
local_is_partial
:
next_task_id
!=
TaskId
::
MIN
,
storage
:
Storage
::
new
(
shard_amount
,
small_preallocation
),
storage
:
Storage
::
new
(
shard_amount
,
small_preallocation
),
in_progress_operations
:
AtomicUsize
::
new
(
0
),
in_progress_operations
:
AtomicUsize
::
new
(
0
),
snapshot_request
:
Mutex
::
new
(
SnapshotRequest
::
new
()),
snapshot_request
:
Mutex
::
new
(
SnapshotRequest
::
new
()),
...
...
turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs
View file @
12da0026
...
@@ -124,7 +124,7 @@ impl<'e, B: BackingStorage> ExecuteContextImpl<'e, B> {
...
@@ -124,7 +124,7 @@ impl<'e, B: BackingStorage> ExecuteContextImpl<'e, B> {
}
}
fn
should_restore_from_backing_storage
(
&
self
)
->
bool
{
fn
should_restore_from_backing_storage
(
&
self
)
->
bool
{
self
.backend
.should_restore
()
&&
self
.backend.local_is_partial
.load
(
Ordering
::
Acquire
)
self
.backend
.should_restore
()
&&
self
.backend.local_is_partial
}
}
fn
restore_task_data
(
fn
restore_task_data
(
...
...
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