mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-26 02:27:21 +03:00
Make maps file opening replaceable in test
This commit is contained in:
parent
4bb4037dbe
commit
21e44c45d9
2 changed files with 5 additions and 1 deletions
|
|
@ -942,7 +942,7 @@ prof_open_maps_internal(const char *format, ...) {
|
|||
#endif
|
||||
|
||||
static int
|
||||
prof_dump_open_maps() {
|
||||
prof_dump_open_maps_impl() {
|
||||
int mfd;
|
||||
|
||||
cassert(config_prof);
|
||||
|
|
@ -960,6 +960,8 @@ prof_dump_open_maps() {
|
|||
#endif
|
||||
return mfd;
|
||||
}
|
||||
prof_dump_open_maps_t *JET_MUTABLE prof_dump_open_maps =
|
||||
prof_dump_open_maps_impl;
|
||||
|
||||
static bool
|
||||
prof_dump_maps(bool propagate_err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue