Skip to content

checklocks: guard task control state - #14335

Open
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-task-controls
Open

checklocks: guard task control state#14335
tamird wants to merge 1 commit into
google:masterfrom
tamird:checklocks-task-controls

Conversation

@tamird

@tamird tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Guard existing task mutex contracts for scheduling, NUMA, privilege state, and destruction callbacks. Initialize the virtual CPU with an atomic Store so its mixed atomic/mutex contract is checked throughout the task lifetime, including construction.

Preserve CPU-mask ownership and unlocked callback execution. Document that start-time writes require Task.mu and the TaskSet mutex, while reads may hold either.

Assisted-by: Codex

Guard existing task mutex contracts for scheduling, NUMA, privilege
state, and destruction callbacks. Initialize the virtual CPU with an
atomic Store so its mixed atomic/mutex contract is checked throughout
the task lifetime, including construction.

Preserve CPU-mask ownership and unlocked callback execution. Document
that start-time writes require Task.mu and the TaskSet mutex, while
reads may hold either.

Assisted-by: Codex
@tamird

tamird commented Aug 22, 2026

Copy link
Copy Markdown
Contributor Author

r? @shailend-g Could you review task control metadata and the virtual-CPU atomic/mutex contract?

Focused local Bazel checks passed. Upstream checks have not reported yet.

Assisted-by: Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant