mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
450b12cd79
commit
fd18ca4367
@ -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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user