Skip to content

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commented Apr 9, 2024

The __has_feature(thread_sanitizer) is a Clang-ism. Although new versions of GCC implement __has_feature, the defined(__has_feature) check still fails on GCC so we don't use that code path.

…abled The `__has_feature(thread_sanitizer)` is a Clang-ism. Although new versions of GCC implement `__has_feature`, the `defined(__has_feature)` check still fails on GCC so we don't use that code path.
@colesburycolesbury merged commit 79eec66 into python:mainApr 10, 2024
@colesburycolesbury deleted the gh-112536-gcc-tsan branch April 10, 2024 14:20
@miss-islington-app
Copy link

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-app
Copy link

GH-117713 is a backport of this pull request to the 3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12 only security fixes label Apr 10, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Apr 10, 2024
…abled (pythonGH-117702) The `__has_feature(thread_sanitizer)` is a Clang-ism. Although new versions of GCC implement `__has_feature`, the `defined(__has_feature)` check still fails on GCC so we don't use that code path. (cherry picked from commit 79eec66) Co-authored-by: Sam Gross <colesbury@gmail.com>
colesbury added a commit that referenced this pull request Apr 10, 2024
…nabled (GH-117702) (#117713) gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-117702) The `__has_feature(thread_sanitizer)` is a Clang-ism. Although new versions of GCC implement `__has_feature`, the `defined(__has_feature)` check still fails on GCC so we don't use that code path. (cherry picked from commit 79eec66) Co-authored-by: Sam Gross <colesbury@gmail.com>
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…abled (python#117702) The `__has_feature(thread_sanitizer)` is a Clang-ism. Although new versions of GCC implement `__has_feature`, the `defined(__has_feature)` check still fails on GCC so we don't use that code path.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@colesbury@pitrou@corona10