Skip to content

Replace ParallelProcessingTools.ThreadLocal with TaskLocalValues.TaskLocalValue#54

Merged
SebastianM-C merged 1 commit intomasterfrom
fix-threading
Mar 5, 2026
Merged

Replace ParallelProcessingTools.ThreadLocal with TaskLocalValues.TaskLocalValue#54
SebastianM-C merged 1 commit intomasterfrom
fix-threading

Conversation

@SebastianM-C
Copy link
Copy Markdown
Owner

ThreadLocal uses threadid()-based indexing which is broken since Julia 1.12 (task migration across threads causes data races / GC corruption). TaskLocalValue uses task_local_storage() which correctly follows the task regardless of which thread executes it.

…LocalValue

ThreadLocal uses threadid()-based indexing which is broken since Julia 1.12
(task migration across threads causes data races / GC corruption).
TaskLocalValue uses task_local_storage() which correctly follows the task
regardless of which thread executes it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@SebastianM-C
Copy link
Copy Markdown
Owner Author

The latest JET release is not yet compatible with julia 1.13

@SebastianM-C SebastianM-C merged commit 2d48018 into master Mar 5, 2026
7 of 14 checks passed
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