Bug 908971 - jemalloc: fix uninitialized 'mapped' variable. r=jlebar
authorDouglas Crosher <dtc-moz@scieneer.com>
Sat, 24 Aug 2013 13:35:08 +1000
changeset 144357 3650bc9fa36b433dc62dcf05bfb869c5f9ad0b71
parent 144356 5d6356a7eed34abd709289cb0c206490ca5d1736
child 144358 ceb5d5cec15a4795df007781edfb16ed26529e74
push id25160
push userryanvm@gmail.com
push dateTue, 27 Aug 2013 00:19:34 +0000
treeherdermozilla-central@c0d1baa50a64 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlebar
bugs908971
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 908971 - jemalloc: fix uninitialized 'mapped' variable. r=jlebar
memory/mozjemalloc/jemalloc.c
--- a/memory/mozjemalloc/jemalloc.c
+++ b/memory/mozjemalloc/jemalloc.c
@@ -5510,17 +5510,17 @@ malloc_print_stats(void)
 
 		_malloc_message("Chunk size: ", umax2s(chunksize, 10, s), "",
 		    "");
 		_malloc_message(" (2^", umax2s(opt_chunk_2pow, 10, s), ")\n",
 		    "");
 
 #ifdef MALLOC_STATS
 		{
-			size_t allocated, mapped;
+			size_t allocated, mapped = 0;
 #ifdef MALLOC_BALANCE
 			uint64_t nbalance = 0;
 #endif
 			unsigned i;
 			arena_t *arena;
 
 			/* Calculate and print allocated/mapped stats. */