Bug 931196 - Remove MOZ_TEMP_INVESTIGATION poisoning code. r=glandium

This commit is contained in:
David Major 2013-10-31 11:52:08 -04:00
parent 1e423346f9
commit 113eaa4daf
2 changed files with 2 additions and 14 deletions

View File

@ -20,10 +20,9 @@ endif
LOCAL_INCLUDES += -I$(topsrcdir)/memory/build
# For non release/esr builds, enable (some) fatal jemalloc assertions. This
# helps us catch memory errors. See bug 764192 for details on what
# MOZ_TEMP_INVESTIGATION is for.
# helps us catch memory errors.
ifeq (,$(filter release esr,$(MOZ_UPDATE_CHANNEL)))
DEFINES += -DMOZ_JEMALLOC_HARD_ASSERTS -DMOZ_TEMP_INVESTIGATION
DEFINES += -DMOZ_JEMALLOC_HARD_ASSERTS
endif
DEFINES += -Dabort=moz_abort

View File

@ -4147,12 +4147,6 @@ arena_malloc_small(arena_t *arena, size_t size, bool zero)
} else
memset(ret, 0, size);
#ifdef MOZ_TEMP_INVESTIGATION
if (size == 72) {
memset(ret, 0xe5, size);
}
#endif
return (ret);
}
@ -4509,11 +4503,6 @@ arena_dalloc_small(arena_t *arena, arena_chunk_t *chunk, void *ptr,
if (opt_junk)
memset(ptr, 0x5a, size);
#endif
#ifdef MOZ_TEMP_INVESTIGATION
if (size == 72) {
memset(ptr, 0x75, size);
}
#endif
arena_run_reg_dalloc(run, bin, ptr, size);
run->nfree++;