mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 21:23:06 +00:00
Mac OS: Tag mapped pages.
This can be used to help profiling tools (e.g. vmmap) identify the sources of mappings more specifically.
This commit is contained in:
committed by
David Goldblatt
parent
f6699803e2
commit
35a8552605
12
configure.ac
12
configure.ac
@@ -926,6 +926,18 @@ if test "x${je_cv_cold}" = "xyes" ; then
|
||||
AC_DEFINE([JEMALLOC_HAVE_ATTR_COLD], [ ])
|
||||
fi
|
||||
|
||||
dnl Check for VM_MAKE_TAG for mmap support.
|
||||
JE_COMPILABLE([vm_make_tag],
|
||||
[#include <sys/mman.h>
|
||||
#include <mach/vm_statistics.h>],
|
||||
[void *p;
|
||||
p = mmap(0, 16, PROT_READ, MAP_ANON|MAP_PRIVATE, VM_MAKE_TAG(1), 0);
|
||||
munmap(p, 16);],
|
||||
[je_cv_vm_make_tag])
|
||||
if test "x${je_cv_vm_make_tag}" = "xyes" ; then
|
||||
AC_DEFINE([JEMALLOC_HAVE_VM_MAKE_TAG], [ ])
|
||||
fi
|
||||
|
||||
dnl Support optional additions to rpath.
|
||||
AC_ARG_WITH([rpath],
|
||||
[AS_HELP_STRING([--with-rpath=<rpath>], [Colon-separated rpath (ELF systems only)])],
|
||||
|
||||
Reference in New Issue
Block a user