forked from OSchip/llvm-project
[scudo] Don't enabled MTE for small alignment
Differential Revision: https://reviews.llvm.org/D105954
This commit is contained in:
parent
fbab8e6f10
commit
14362bf1b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue