Change macOS mmap tag to fix conflict with CoreMedia

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: 94d3b45284/osfmk/mach/vm_statistics.h (L773-L775)
This commit is contained in:
Danny Lin 2024-06-10 15:03:23 -07:00 committed by Qi Wang
parent a1fcbebb18
commit c893fcd169

View file

@ -17,7 +17,7 @@
#include <sys/bitops.h> /* 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