diff options
author | jackpoz <giacomopoz@gmail.com> | 2014-06-19 21:59:49 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2014-06-19 22:20:55 +0200 |
commit | 57069b393d7698bc0f860ad1b2d0b16785f9e8e0 (patch) | |
tree | 9426f07459164e6cbe3f9d1486b64a0dbb1b7cd3 /dep/jemalloc/src/prof.c | |
parent | dc96fb1cee4a91e9828d085717b50fc163393bc6 (diff) |
Core/Dependencies: Upgrade to jemalloc-3.6.0
Diffstat (limited to 'dep/jemalloc/src/prof.c')
-rw-r--r-- | dep/jemalloc/src/prof.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dep/jemalloc/src/prof.c b/dep/jemalloc/src/prof.c index 1d8ccbd60ae..7722b7b4373 100644 --- a/dep/jemalloc/src/prof.c +++ b/dep/jemalloc/src/prof.c @@ -935,9 +935,12 @@ prof_dump_maps(bool propagate_err) char filename[PATH_MAX + 1]; cassert(config_prof); - +#ifdef __FreeBSD__ + malloc_snprintf(filename, sizeof(filename), "/proc/curproc/map"); +#else malloc_snprintf(filename, sizeof(filename), "/proc/%d/maps", (int)getpid()); +#endif mfd = open(filename, O_RDONLY); if (mfd != -1) { ssize_t nread; |