2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:17 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'jemalloc_types.h',
|
|
|
|
]
|
|
|
|
|
2013-06-04 19:08:44 +04:00
|
|
|
if not CONFIG['MOZ_JEMALLOC3']:
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-06-04 19:08:44 +04:00
|
|
|
'jemalloc.c',
|
|
|
|
]
|
2014-09-03 09:10:54 +04:00
|
|
|
Library('mozjemalloc')
|
2014-07-23 08:30:52 +04:00
|
|
|
STATIC_LIBRARY_NAME = 'jemalloc'
|
2013-10-24 21:52:00 +04:00
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-27 17:55:07 +04:00
|
|
|
|
|
|
|
# For non release/esr builds, enable (some) fatal jemalloc assertions. This
|
|
|
|
# helps us catch memory errors.
|
|
|
|
if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release', 'esr'):
|
|
|
|
DEFINES['MOZ_JEMALLOC_HARD_ASSERTS'] = True
|
|
|
|
|
|
|
|
DEFINES['abort'] = 'moz_abort'
|
|
|
|
|
|
|
|
DEFINES['MOZ_JEMALLOC_IMPL'] = True
|
2013-12-09 08:39:26 +04:00
|
|
|
|
|
|
|
#XXX: PGO on Linux causes problems here
|
|
|
|
# See bug 419470
|
|
|
|
if CONFIG['OS_TARGET'] == 'Linux':
|
|
|
|
NO_PGO = True
|
2014-02-16 00:24:59 +04:00
|
|
|
|
2014-06-25 06:44:58 +04:00
|
|
|
if CONFIG['MOZ_NUWA_PROCESS']:
|
|
|
|
DEFINES['pthread_mutex_lock'] = '__real_pthread_mutex_lock';
|
|
|
|
|
2014-02-16 00:24:59 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/memory/build',
|
|
|
|
]
|
|
|
|
|