From c893fcd169fffca1b9d3156c6637a197765b82d0 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Mon, 10 Jun 2024 15:03:23 -0700 Subject: [PATCH] Change macOS mmap tag to fix conflict with CoreMedia MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tag 101 is assigned to "CoreMedia Capture Data", which makes for confusing output when debugging. To avoid conflicts, use a tag in the reserved application-specific range from 240–255 (inclusive). All assigned tags: https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/osfmk/mach/vm_statistics.h#L773-L775 --- src/pages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages.c b/src/pages.c index 8cf2fd9f..981aae9b 100644 --- a/src/pages.c +++ b/src/pages.c @@ -17,7 +17,7 @@ #include /* ilog2 */ #endif #ifdef JEMALLOC_HAVE_VM_MAKE_TAG -#define PAGES_FD_TAG VM_MAKE_TAG(101U) +#define PAGES_FD_TAG VM_MAKE_TAG(254U) #else #define PAGES_FD_TAG -1 #endif