Skip to content

Commit

Permalink
allocator: Disable PartitionAlloc memory tagging on non-glibc
Browse files Browse the repository at this point in the history
Memory tagging depends on ifunc which is glibc-specific.
  • Loading branch information
klzgrad committed Aug 5, 2023
1 parent 60f1f9d commit 8cc7ce8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ static_assert(sizeof(void*) != 8, "");
(!BUILDFLAG(PUT_REF_COUNT_IN_PREVIOUS_SLOT) && \
defined(ARCH_CPU_LITTLE_ENDIAN))

#define PA_CONFIG_HAS_MEMORY_TAGGING() \
(defined(ARCH_CPU_ARM64) && defined(__clang__) && \
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID)))
#define PA_CONFIG_HAS_MEMORY_TAGGING() \
(defined(ARCH_CPU_ARM64) && defined(__clang__) && \
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))) && \
defined(LIBC_GLIBC)

#if PA_CONFIG(HAS_MEMORY_TAGGING)
static_assert(sizeof(void*) == 8);
Expand Down

0 comments on commit 8cc7ce8

Please sign in to comment.