memory/build/jemalloc_config.c

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifdef MOZ_JEMALLOC3
     7 #define MOZ_JEMALLOC_IMPL
     9 #include "mozmemory_wrap.h"
    10 #include "mozilla/Types.h"
    12 /* Override some jemalloc defaults */
    13 MFBT_DATA const char * je_(malloc_conf) = "narenas:1,lg_chunk:20";
    15 #ifdef ANDROID
    16 #include <android/log.h>
    18 static void
    19 _je_malloc_message(void *cbopaque, const char *s)
    20 {
    21   __android_log_print(ANDROID_LOG_INFO, "GeckoJemalloc", "%s", s);
    22 }
    24 void (*je_(malloc_message))(void *, const char *s) = _je_malloc_message;
    25 #endif
    27 #endif /* MOZ_JEMALLOC3 */
    29 /* Provide an abort function for use in jemalloc code */
    30 #include <mozilla/Assertions.h>
    32 void moz_abort() {
    33   MOZ_CRASH();
    34 }

mercurial