diff options
author | Jason Evans <jasone@canonware.com> | 2014-03-31 16:33:19 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2014-03-31 16:33:19 (GMT) |
commit | 46c0af68bd248b04df75e4f92d5fb804c3d75340 (patch) | |
tree | 28a1ac21474d5f3d55812986c4c75a8bb734257b /src/prof.c | |
parent | 7709a64c59daf0b1f938be49472fcc499e1bd136 (diff) | |
parent | 8a26eaca7f4c95771ecbf096caeeba14fbe1122f (diff) | |
download | jemalloc-3.6.0.zip jemalloc-3.6.0.tar.gz jemalloc-3.6.0.tar.bz2 |
Merge branch 'dev'3.6.0
Diffstat (limited to 'src/prof.c')
-rw-r--r-- | src/prof.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |