Repository navigation
MDEV-40410 follow-up: also fix TSan build for Clang < 22 - #6281
Open
FooBarrior wants to merge 2 commits into
Open
FooBarrior wants to merge 2 commits into
FooBarrior wants to merge 2 commits into
Conversation
Clang predefines __SANITIZE_THREAD__ only from version 22; check __has_feature(thread_sanitizer) as well.
dr-m
approved these changes
Nov 30, 2026
grooverdan
enabled auto-merge (rebase)
December 1, 2026 06:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to c9294c9: Clang predefines
__SANITIZE_THREAD__only from version 22, so a Clang 21-fsanitize=threadbuild still reserves the 8 TiBinnodb_buffer_pool_size_maxdefault and InnoDB fails withCannot map innodb_buffer_pool_size_max=8388608m.Check
__has_feature(thread_sanitizer)as well; a GCC without that builtin gets the__has_feature(x) 0fallback frommy_pthread.h/my_valgrind.h.Checked with Ubuntu clang 21.1.8 and GCC 16.2: under TSan
buf0buf.ccnow getssize_in_bytes_max_default{0}; without TSan it keeps{8ULL << 40}.