mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1057754 (follow-up) - Allow Valgrind + jemalloc to be combined, because it makes sense when running Cachegrind. r=me.
This commit is contained in:
parent
015fc70f98
commit
ee0e0c98ea
@ -193,10 +193,6 @@
|
||||
*/
|
||||
#define MALLOC_VALIDATE
|
||||
|
||||
#ifdef MOZ_VALGRIND
|
||||
# include <valgrind/valgrind.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* MALLOC_BALANCE enables monitoring of arena lock contention and dynamically
|
||||
* re-balances arena load if exponentially averaged contention exceeds a
|
||||
@ -3379,15 +3375,6 @@ arena_chunk_init(arena_t *arena, arena_chunk_t *chunk)
|
||||
arena_run_t *run;
|
||||
size_t i;
|
||||
|
||||
#ifdef MOZ_VALGRIND
|
||||
if (RUNNING_ON_VALGRIND) {
|
||||
fprintf(stderr, "ERROR: Cannot run Valgrind with jemalloc enabled.\n");
|
||||
fprintf(stderr, "Please build with --disable-jemalloc, or run Valgrind with\n");
|
||||
fprintf(stderr, "--soname-synonyms=somalloc=NONE.\n");
|
||||
jemalloc_crash();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MALLOC_STATS
|
||||
arena->stats.mapped += chunksize;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user