Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[TSan] |ktf_worker_t::i| is unsynchronised#1056

Open
iiSeymour wants to merge 1 commit into
lh3:masterlh3/minimap2:masterfrom
iiSeymour:tsan-sync-readiiSeymour/minimap2:tsan-sync-readCopy head branch name to clipboard
Open

[TSan] |ktf_worker_t::i| is unsynchronised#1056
iiSeymour wants to merge 1 commit into
lh3:masterlh3/minimap2:masterfrom
iiSeymour:tsan-sync-readiiSeymour/minimap2:tsan-sync-readCopy head branch name to clipboard

Conversation

@iiSeymour

Copy link
Copy Markdown
Contributor

TSan complains that this read of |ktf_worker_t::i| is unsynchronised wrt the stores on the other worker threads. Unlike the _atomic* family of functions the _sync* functions don't have a relaxed read without modification, so to emulate this behaviour I've used the existing __sync_fetch_and_add() with an increment of 0.

wrt the stores on the other worker threads. Unlike the __atomic_*
family of functions the __sync_* functions don't have a relaxed read
without modification, so to emulate this behaviour I've used the
existing __sync_fetch_and_add() with an increment of 0.
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.