Bug 1403843 - Disable static sizes on debug builds. r=njn

Because why not, especially now that this only concerns the page size.

--HG--
extra : rebase_source : 9ff92d2551e0bb8633072e0c8d5aa36c570314e1
This commit is contained in:
Mike Hommey 2017-09-28 15:15:23 +09:00
parent 450b12cd79
commit fd18ca4367

View File

@ -387,10 +387,13 @@ void *_mmap(void *addr, size_t length, int prot, int flags,
* compile-time for better performance, as opposed to determined at
* runtime. Some platforms can have different page sizes at runtime
* depending on kernel configuration, so they are opted out by default.
* Debug builds are opted out too, for test coverage.
*/
#ifndef MOZ_DEBUG
#if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && !defined(__aarch64__)
#define MALLOC_STATIC_PAGESIZE 1
#endif
#endif
/* Various quantum-related settings. */