mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
[scudo] Don't enabled MTE for small alignment
Differential Revision: https://reviews.llvm.org/D105954
This commit is contained in:
@@ -319,7 +319,8 @@ inline void *addFixedTag(void *Ptr, uptr Tag) {
|
||||
|
||||
template <typename Config>
|
||||
inline constexpr bool allocatorSupportsMemoryTagging() {
|
||||
return archSupportsMemoryTagging() && Config::MaySupportMemoryTagging;
|
||||
return archSupportsMemoryTagging() && Config::MaySupportMemoryTagging &&
|
||||
(1 << SCUDO_MIN_ALIGNMENT_LOG) >= archMemoryTagGranuleSize();
|
||||
}
|
||||
|
||||
} // namespace scudo
|
||||
|
||||
Reference in New Issue
Block a user