Skip to content

Conversation

aelovikov-intel
Copy link
Contributor

#19924 essentially made it static but that caused data races that were later fixed by #20360 changing each use of it to re-create this in-memory FS (essentially, "removing" static), incurring significant performance costs.

This PR addresses the issue by "adding" thread_local instead of "removing" static allowing us to have both no crashes due to data races and minimal overhead.

No tests added as the one from #20360 is verifying this.

intel#19924 essentially made it `static`
but that caused data races that were later fixed by
intel#20360 changing each use of it to
re-create this in-memory FS (essentially, "removing" `static`),
incurring significant performance costs.

This PR addresses the issue by "adding" `thread_local` instead of
"removing" `static` allowing us to have both no crashes due to data
races and minimal overhead.

No tests added as the one from intel#20360
is verifying this.
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