Commit Graph

679 Commits

Author SHA1 Message Date
Mike Hommey
631f8f3393 Bug 1014308 - Update jemalloc3 to upstream 3.6.0. r=njn,r=mshal 2014-05-23 07:26:40 +09:00
Mike Hommey
b01a539557 Bug 1014300 - Ship replace_jemalloc library (jemalloc3) when replace-malloc is enabled. r=mshal 2014-05-23 07:24:22 +09:00
Nicholas Nethercote
9473865cce Bug 1013011 - DMD: Remove stack frame records. r=erahm.
DONTBUILD because DMD is NPOTB.
2014-05-19 19:57:50 -07:00
Eric Rahm
1058655d11 Bug 1000621 - Check if DMD is enabled before dumping. r=njn. DONTBUILD 2014-04-24 12:43:11 -07:00
Nathan Froyd
d1b55ffa24 Bug 993522 - fix comment in DMD.h; r=njn 2014-04-08 13:07:46 -04:00
Michael Wu
7c61e5f14c Bug 985017 - [1/2] Support null VolatileBufferPtrs, r=glandium 2014-04-02 21:32:54 -04:00
Mike Hommey
4915133ee5 Bug 984447 - Properly handle forks in mozjemalloc after bug 694896. r=smichaud 2014-03-29 16:53:49 +09:00
Thomas Zimmermann
739b082bdc Bug 979887: Fix GCC warning about undeclared function |vsnprintf|, r=glandium 2014-03-06 11:20:00 +01:00
Thomas Zimmermann
724de1c4a9 Bug 979887: Fix GCC warnings about inline variable declarations, r=glandium
Some code is compiled in C90 mode, where inline declarations of
variables are not allowed.
2014-03-06 11:19:57 +01:00
Ehsan Akhgari
17f4a32d8b Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
Masatoshi Kimura
04f17d8a37 Bug 978442 - Use WindowsVersion.h from VolatileBuffer. r=mwu 2014-03-02 10:29:13 +09:00
Frank Wein
cb16191dfc Bug 977667 - VolatileBufferFallback.cpp:16:10: error: ‘nullptr’ was not declared in this scope, r=glandium 2014-02-28 12:32:14 +01:00
Ehsan Akhgari
7e41f47adf Bug 935778 - Part 0.4: Spray even more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree 2014-02-21 09:11:33 -05:00
Jacek Caban
5ebe3bf5e9 Bug 748598 - Fixed cross compilation on case sensitive OSes. 2014-02-20 17:22:42 +01:00
Michael Wu
01ca9b9c89 Bug 972693 - Explicitly ignore return values from moz_posix_memalign, r=glandium 2014-02-14 02:15:44 -05:00
Ehsan Akhgari
996229d3d0 Bug 973403 - Move the LOCAL_INCLUDES in memory to moz.build; r=glandium 2014-02-18 01:05:51 -05:00
Ms2ger
33da18c67e Bug 968856 - Move unconditional LOCAL_INCLUDES into moz.build; r=mshal 2014-02-15 21:24:59 +01:00
Michael Wu
a02c5cf42e Bug 748598 - Implement VolatileBuffer for OSX, Ashmem, and Windows, r=njn,glandium 2014-01-22 08:23:27 -05:00
David Major
cd455b826e Bug 860254 - Part 4: Enable poisoning. r=glandium 2014-02-13 20:11:15 -05:00
David Major
445940d0b6 Bug 860254 - Part 2: Split junk settings into opt_junk (allocate) versus opt_poison (deallocate). r=glandium 2014-01-14 11:56:18 -08:00
David Major
9989920680 Bug 860254 - Part 1: #define MALLOC_FILL but keep the options const-false. r=glandium 2014-02-13 20:10:35 -05:00
Ehsan Akhgari
d91d200572 Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
Eric Rahm
7b205832d2 Bug 968956 - DMD: Acquire state lock before clearing reports. r=njn.
DONTBUILD because DMD is NPOTB.

--HG--
extra : rebase_source : c3e5b2f27d4983c5802f1a38c8accc31a2b07fa2
2014-02-07 15:23:50 -08:00
Marcin Juszkiewicz
420122fd2c Bug 963028 - AArch64 support for jemalloc. r=froydnj 2014-01-23 16:34:31 -05:00
Shelly Lin
4da13e0a0a Bug 801571 - Override vasprintf and asprint for Android platform to avoid the mismatch of malloc()/free(). r=glandium 2014-01-17 16:54:06 +08:00
Ryan VanderMeulen
da06e090f6 Backed out changeset 4230d328b65f (bug 801571) for memory leaks. 2014-01-17 14:25:28 -05:00
Shelly Lin
5a3b503309 Bug 801571 - Override vasprintf and asprint for Android platform to avoid the mismatch of malloc()/free(). r=glandium
DONTBUILD
2014-01-17 16:54:06 +08:00
Ryan VanderMeulen
913aa4dc43 Backed out changeset 0496d73bf88e for landing with the wrong bug # in the commit message. 2014-01-17 11:13:30 -05:00
Shelly Lin
7a3e6b8008 Bug 801517 - Override vasprintf and asprint for Android platform to avoid the mismatch of malloc()/free(). r=glandium 2014-01-17 16:54:06 +08:00
Kai-Zhen Li
d8cf29acff Bug 957450 - fix compile error from jemalloc in gonk-kk. r=gal 2014-01-10 14:14:53 +08:00
Marco Chen
46177c53e2 Backout 977d6be3df40 Bug 957450 - The added "or condition" didn't prevent gonk-kk version fall into non-const definition. 2014-01-15 15:55:12 +08:00
Jon Coppeard
8e8c44704e Bug 956501 - Update mozjemalloc chunk_alloc_mmap functions to latest upstream version r=glandium 2014-01-14 10:06:25 +00:00
Kai-Zhen Li
5979fa3eb3 Bug 957450 - fix compile error in gonk-kk. r=iacobcatalin 2014-01-10 14:14:53 +08:00
Nicholas Nethercote
2342cace79 Bug 950545 (part 2) - Fix assertion failures and output mismatches in the DMD test. r=iacobcatalin.
DONTBUILD because DMD is NPOTB

--HG--
extra : rebase_source : 48388b467bcbce8347792c8e7f0cb45b1fc177aa
2013-12-18 13:58:08 -08:00
Nicholas Nethercote
ac0a3065c4 Bug 950545 (part 1) - Fix the dump numbering in the DMD test. r=iacobcatalin.
--HG--
extra : rebase_source : 2b04382850c19aff46fce02d02ce1c235edde473
2013-12-18 13:55:47 -08:00
Nicholas Nethercote
6b9163f560 Bug 948621 (part 2) - Abort DMD-enabled Windows builds unless --enable-profiling is specified. r=ehsan.
--HG--
extra : rebase_source : 7398d8d7f13792912f27948f9681ff608a0e90c6
2013-12-15 13:50:39 -08:00
Nicholas Nethercote
736ea6d8cf Bug 948621 (part 1) - DMD: Handle arbitrary PC values in stack frames. r=iacobcatalin.
DONTBUILD because NPOTB

--HG--
extra : rebase_source : 63a30251498dc5e5df2952a468f46ada8598e03e
2013-12-15 13:47:11 -08:00
Mike Hommey
62d390485a Bug 945042 - Move NO_PROFILE_GUIDED_OPTIMIZE to moz.build. r=gps,r=njn 2013-12-09 13:39:26 +09:00
Birunthan Mohanathas
68b00083fd Bug 713082 - Part 1: Remove unnecessary Util.h includes. r=Waldo 2013-12-08 21:52:33 -05:00
Mike Shal
ddecae52a4 Bug 875013 - Remove VPATH; r=glandium 2013-11-21 14:57:06 -05:00
Markus Stange
c1c64aef1e Bug 945131 - Fix DMD build by using const char*. r=njn
DONTBUILD because NPOTB
2013-12-02 23:13:20 +01:00
Catalin Iacob
269fad5982 Bug 819839 - Part 2 - Print file name and line number if available in DMD report. r=njn 2013-11-29 16:09:42 +01:00
Mike Hommey
8fd06cf41b Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
Mike Hommey
b32a4ed166 Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey
682364d535 Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-28 13:08:16 +09:00
Catalin Iacob
fe5d12c0e2 Bug 940218 - Build memory/ in unified mode; r=ehsan 2013-11-25 12:09:59 +01:00
Ehsan Akhgari
e58130769b Backed out changeset c3d41ab0a2df (bug 940218) for causing bug 941616
--HG--
extra : rebase_source : c0d9b2840ddb6a6b88b86cfc3e3a6810ac9e37e2
2013-11-21 14:28:52 -05:00
Nathan Froyd
fb9e458abe Bug 941616 - fix jemalloc build for --enable-replace-malloc; r=ehsan 2013-11-21 09:46:32 -05:00
Chris Peterson
4be77ac908 Bug 940218 - Build memory/jemalloc and friends in unified mode. r=glandium 2013-11-17 01:16:36 -08:00
Mike Hommey
b2e90f6233 Bug 914245 - Move FORCE_SHARED_LIB to moz.build. r=mshal 2013-11-19 11:47:45 +09:00
Mike Hommey
e80e877ab7 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey
dda5b915fe Bug 939039 - Remove now useless FORCE_STATIC_LIB definitions. r=gps 2013-11-19 11:47:28 +09:00
Mike Hommey
ffe0380912 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09:00
Birunthan Mohanathas
02a1314689 Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan 2013-11-11 14:17:14 -05:00
Daniel Holbert
4908bbab5e Bug 926275: Remove mozalloc_macro_wrappers.h and mozalloc_undef_macro_wrappers.h. r=bsmedberg 2013-10-31 19:39:03 -07:00
David Major
06ff88fdbc Bug 931196 - Remove MOZ_TEMP_INVESTIGATION poisoning code. r=glandium 2013-10-31 11:52:08 -04:00
Ted Mielczarek
673fd74516 Bug 930674 - convert VISIBILITY_FLAGS in Makefile.in to NO_VISIBILITY_FLAGS in moz.build. r=mshal 2013-10-24 15:06:19 -04:00
Cykesiopka
d733533b8f Bug 914270 - Part 2: Manual moves. r=joey 2013-10-24 18:52:00 +01:00
Cykesiopka
d2f6b7333c Bug 914270 - Part 1: Simple/Automated moves. r=joey 2013-10-24 18:51:00 +01:00
Mike Hommey
b000a846c2 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Mike Hommey
3fa7456cd6 Bug 913268 - Make CPP_SOURCES a StrictOrderingOnAppendList. r=mshal 2013-10-24 08:00:23 +09:00
Masatoshi Kimura
ede451acef Bug 928210 - Get rid of MOZ_INLINE 2013-10-22 06:34:24 +09:00
Nathan Froyd
23a4aa4d48 Bug 925169 - part 1 - don't use MOZ_MEMORY_SIZEOF_PTR_2POW in jemalloc.c; r=glandium 2013-10-09 19:04:43 -04:00
Ms2ger
6d43820437 Bug 923489 - Part c: qualify paths in memory/replace/dmd/; r=gps 2013-10-05 13:28:25 +02:00
Ms2ger
ef9afa38e7 Bug 923489 - Part b: qualify paths in memory/replace/jemalloc/; r=gps 2013-10-05 12:19:08 +02:00
Ms2ger
00cffa4842 Bug 923489 - Part a: qualify paths in memory/jemalloc/; r=gps 2013-10-05 12:18:36 +02:00
Mike Hommey
f8bc7fa754 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Brian O'Keefe
d118b95a0d Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Douglas Crosher
ea8a7bdc6c Bug 908971 - jemalloc: fix uninitialized 'mapped' variable. r=jlebar 2013-08-24 13:35:08 +10:00
Justin Lebar
1cfc0ff873 Bug 903420 - Two fixes to jemalloc's memory reporters. r=glandium
1) We were counting "dirty" pages in "waste", when we shouldn't have
   been.  This was causing the assertion at the end of jemalloc_stats()
   which checks that mapped memory is greater than committed memory to
   fail.

2) jemalloc_stats used stats_chunks.curchunks to measure the number of
   mapped pages.  This was problematic for two reasons.

   a) stats_chunks.curchunks was not locked when it was modified in
      chunk_{de}alloc(), so its value could be garbage.

   b) Even if it had been locked properly, it was possible for an
      allocation to occur during a call to jemalloc_stats which would
      cause the measured amount of allocated memory to exceed the
      measured amount of mapped memory, tripping the assertion we
      tripped in (1).

   We fixed these issues by deleting stats_chunks entirely, and by
   introducing huge_mapped, which measures the amount of memory mapped
   by huge allocations (and is properly protected by huge_mtx).

   We now measure the amount of mapped memory by adding huge_mapped and
   each arena's mapped memory, and we do this in such a way that even if
   an allocation occurs during our call to jemalloc_stats, we'll still
   get a consistent result (where mapped >= committed).
2013-08-15 11:15:04 -07:00
Mike Hommey
f33621ca8f Bug 901211 - Don't use static page size on ia64, sparc and mips. r=jlebar 2013-08-05 09:10:35 +09:00
Ms2ger
50634577d5 Merge m-c to inbound. 2013-08-02 11:07:57 +02:00
Ms2ger
a4e67abf5e Bug 897921 - Remove some dead assignments in makefiles; r=mshal 2013-08-02 09:03:55 +02:00
Justin Lebar
a36239e4ef Bug 899880 - Fix jemalloc3 so it works after bug 898558, which changed jemalloc's stats struct. r=glandium 2013-08-01 16:37:54 -07:00
Ehsan Akhgari
2824b29025 Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])

--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Justin Lebar
e67b738ee5 Bug 898558 - Rework jemalloc_stats so it exposes how much memory is used for bookkeeping. r=glandium
This patch also gets rid of the redundant "committed" entry, so now
there's no confusion as to which entries overlap.

--HG--
extra : rebase_source : 429f3d44011f02dda43aa10b077c917c4d02fe50
2013-07-29 09:10:53 -07:00
Daniel Holbert
5c2c464bdd Bug 581478: undef strdup before (re)defining it in mozalloc_macro_wrappers.h. r=glandium 2013-07-25 18:14:41 -07:00
Mike Shal
1c7eb2843f Bug 889787 - Define XP_LINUX globally; r=ted 2013-07-16 17:10:10 -04:00
Mike Hommey
b97d1767fc Bug 892904 - Remove useless includes of config.mk. r=gps 2013-07-15 18:48:40 +09:00
Gregory Szorc
19850b9b8e Bug 891632 - Port NO_DIST_INSTALL to moz.build; r=joey
Many of the moved variables are likely not needed. moz.build should one
day validate the sandbox's output and error if "useless" variables are
present.

--HG--
extra : rebase_source : 3abdea056c18d00ede8c15b37db60532eca58630
2013-07-10 12:08:21 -07:00
Catalin Iacob
6f4758d23e Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Brian O'Keefe
f11b19a860 Bug 875934 - Move LIBRARY_NAME to moz.build (batch #2); r=mshal
--HG--
extra : rebase_source : 555b28e5c3412ffc210c60b6fe2fee6f053fd587
2013-06-18 08:13:42 -04:00
Brian O'Keefe
11bcc1cd9e Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1); r=mshal
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Joey Armstrong
05956ba0cd bug 870406: move CSRCS to mozbuild (config batch #2) r=mshal 2013-06-04 11:08:44 -04:00
Mike Shal
5169c0a913 Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
David Zbarsky
b7a4767301 Fix b2g build, no bug 2013-05-16 18:07:12 -07:00
Bill McCloskey
52b75b6ca8 Bug 863116 - MOZ_ALWAYS_INLINE should not inline in debug builds (r=Waldo) 2013-04-19 10:55:34 -07:00
Mike Shal
df7deac25b Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey 2013-04-16 15:24:43 -04:00
Nicholas Nethercote
8ca600972c Bug 848560 (part 1) - dmd::ClearReports() needs to check if DMD is running before doing anything to avoid crashing. r=jlebar.
--HG--
extra : rebase_source : bdd7a6d1654dfbf562bc534311869248eb3c8a4a
2013-03-25 21:03:47 -07:00
Kyle Machulis
72a717a860 Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
Kyle Machulis
43628a7867 Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot 2013-03-29 15:12:58 -07:00
Kyle Machulis
334c0800cf Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Steve Singer
e8837eed1a Bug 851859 - Set jemalloc's page size based on the architecture instead of assuming it's always 4kb. r=jlebar 2013-03-27 11:32:34 -04:00
Mike Shal
7ecea60097 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Daniel Holbert
513bfe54a9 Bug 851981: Make loop iterator in mozalloc_handle_oom a size_t instead of an int, to fix build warning for signed/unsigned comparison. r=bsmedberg 2013-03-18 10:58:31 -07:00
Gregory Szorc
7d09ff18e0 Bug 844635 - Part 3: Remove empty Makefile.in files; r=glandium 2013-03-17 18:01:25 -07:00
Adam Roach [:abr]
39b30d5cd5 Bug 846368 - Add number of bytes requested to OOM last-gasp r=bsmedberg 2013-02-28 13:43:51 -06:00
Gregory Szorc
282edab58a Bug 784841 - Part 18c: Convert /memory, /mfbt, /mozglue; r=ted f=Ms2ger 2013-02-25 12:47:17 -08:00
Nicholas Nethercote
d62ad370c6 Bug 841564 - DMD: Fix the second percentage in stack frame records. r=jlebar. DONTBUILD.
--HG--
extra : rebase_source : 079bce40754ceb975cac4b3e152b294364adcdc1
2013-02-18 17:02:13 -08:00
Rafael Ávila de Espíndola
a8f5bd4bfb Bug 839338 - ASan alloc/dealloc mismatch in _M_create_nodes/_M_destroy_nodes. r=waldo. 2013-02-12 08:30:16 -05:00
Nicholas Nethercote
a1818f3885 Bug 838942 - DMD: Fix assertion in the test on Windows. r=jlebar. DONTBUILD because DMD isn't built by default.
--HG--
extra : rebase_source : e2075b1b34bbfc7d0a3b9f45523323a7f38dcb63
2013-02-07 11:18:52 -08:00
Nicholas Nethercote
6749ec5edd Bug 836054 - DMD: Handle stack entries with PC of 0x0. r=jlebar.
--HG--
rename : accessible/src/base/EventQueue.cpp => accessible/src/base/NotificationController.cpp
rename : accessible/src/base/EventQueue.h => accessible/src/base/NotificationController.h
rename : dom/browser-element/BrowserElementParent.jsm => dom/browser-element/BrowserElementParent.js
rename : testing/modules/AppInfo.jsm => services/healthreport/modules-testing/utils.jsm
extra : rebase_source : a9b8cc73c22c889dd3973bb411a075a7e7d1e954
2013-02-03 20:15:10 -08:00
Daniel Holbert
2d3b564a8f Bug 829327: Mark mozalloc_abort() as MOZ_NORETURN (except on ARM, where we're pretty sure it breaks crash stacks). r=cjones 2013-01-11 09:29:02 -08:00
Nicholas Nethercote
8685a2fb2b Bug 827523 (part 3) - DMD: Add --max-frames and --max-records options. r=jlebar.
--HG--
extra : rebase_source : 9840bcfa2d8fc1127a6f367a94e1d8488ae41c6a
2013-01-07 18:32:38 -08:00
Nicholas Nethercote
d5ea3d0aef Bug 827523 (part 2) - DMD: Swap the diff order in test mode. r=jlebar.
--HG--
extra : rebase_source : d8b96799e7353f9d838f31ddb4b1aaca3ab6ca9c
2013-01-07 18:01:07 -08:00
Nicholas Nethercote
d67e1ce5ef Bug 827523 (part 1) - DMD: Remove valloc() from the test. r=jlebar.
--HG--
extra : rebase_source : a5da90a39a14d45d4d841ec22506e66520791e96
2013-01-07 17:59:44 -08:00
Justin Lebar
ca5ae82177 Bug 826515 - Occasionally GC DMD stacks. r=njn 2013-01-08 11:04:19 +01:00
Nicholas Nethercote
1c4b07debe Bug 818793 - Add a |aMaxFrames| parameter to NS_StackWalk. r=jlebar,glandium; sr=dbaron. 2012-12-20 21:31:57 -08:00
Nicholas Nethercote
90894d5546 Bug 820566 - DMD: Improve testing by using a script to filter out platform-specific stuff in the output. r=jlebar.
--HG--
extra : rebase_source : 9afed1fade6007f76d69faa1d3bd8d95516380d5
2013-01-06 19:18:13 -08:00
Nicholas Nethercote
8721130e3f Bug 826183 - DMD: clear reportedness data before running memory reporters and dumping. r=jlebar.
--HG--
extra : rebase_source : 3ea1c71eacdee712b2d1739a8e25cbf854ea0424
2013-01-06 13:34:39 -08:00
Chris Jones
36428f7dd6 Bug 824224: Make mozalloc_abort() not MOZ_NORETURN and log errors to logcat. r=glandium 2013-01-04 13:28:37 -08:00
Ehsan Akhgari
9a55db7b61 Bug 826779 - Get DMD to build on Windows; r=bbondy 2013-01-04 13:57:27 -05:00
Mike Hommey
e6d10e0341 Bug 826171 - Fix strndup in memory/build/mozmemory_wrap.c. r=jlebar 2013-01-03 16:05:20 +01:00
Trevor Saunders
801c9b79ba bug 822717 - remove checks for old gcc r=glandium 2012-12-18 13:22:28 -05:00
Justin Lebar
3953ecb18b Bug 824395 - Report used stacks separately from unused stacks. r=njn 2012-12-23 21:48:03 -05:00
Nicholas Nethercote
cfbd97ac1f Bug 824340 - DMD: fix a deadlock when getting stack traces. r=jlebar.
--HG--
extra : rebase_source : c0bb85cddb6abed0eedd49d959001a0b95667946
2012-12-23 17:35:56 -08:00
Nicholas Nethercote
8a077597c2 Bug 824390 - DMD: Don't use PTHREAD_MUTEX_INITIALIZER for non-static mutexes. r=jlebar.
--HG--
extra : rebase_source : a8cdd5e3d3db05cbb78441477508c05168e67ecd
2012-12-23 17:35:23 -08:00
Nicholas Nethercote
9626204f2b Bug 822148 (part 9) - DMD: rename "groups" as "records". r=jlebar.
--HG--
extra : rebase_source : e48e309bb7efc62ef52202e50e0f662814108e54
2012-12-17 21:54:08 -08:00
Nicholas Nethercote
7e2bb7c0a9 Bug 822148 (part 8) - DMD: remove a friend declaration. r=jlebar.
--HG--
extra : rebase_source : c9c23e0bcb2d6a50085daf23d7be04614efa7ac8
2012-12-19 19:48:43 -08:00
Nicholas Nethercote
5d609e3ece Bug 822148 (part 7) - DMD: use Percent() in a couple of appropriate places. r=jlebar.
--HG--
extra : rebase_source : 4f99a7aca69ccf821209169a5b91c50738de736c
2012-12-19 19:41:57 -08:00
Nicholas Nethercote
54dc196b5e Bug 822148 (part 6) - DMD: print block counts in the summary. r=jlebar.
--HG--
extra : rebase_source : 84c3cff46912bc7b9fe3bb4790d2cec874ae3201
2012-12-18 19:08:07 -08:00
Nicholas Nethercote
d1e9cbcfac Bug 822148 (part 5) - DMD: avoid empty library names in stacks. r=jlebar.
--HG--
extra : rebase_source : dcf7ebcc296663221dc7f671cd151d5d1f438971
2012-12-17 21:55:12 -08:00
Nicholas Nethercote
cd1ce642a3 Bug 822148 (part 4) - DMD: Capitalize class Thread's method names. r=jlebar.
--HG--
extra : rebase_source : 6cb59d548f2e972398c6a14cdfe44d2a2d474af0
2012-12-17 19:59:29 -08:00
Nicholas Nethercote
166388391b Bug 822148 (part 3) - DMD: Rename |LiveBlock| as |Block|. r=jlebar.
--HG--
extra : rebase_source : 65ccba830ca872fd28a410122ebf65c12cbf6377
2012-12-17 19:56:51 -08:00
Nicholas Nethercote
015c1f6abb Bug 822148 (part 2) - DMD: Treat twice-reported blocks more like other blocks. r=jlebar.
--HG--
extra : rebase_source : 345123de945a3c26ec6ca88a599b45efddc4209e
2012-12-17 19:40:07 -08:00
Nicholas Nethercote
7f23ff5546 Bug 822148 (part 1) - DMD: remove reporter names from output because they're redundant. r=jlebar.
--HG--
extra : rebase_source : c9bf57dbd3612719ba60951cb14988ec38b392f0
2012-12-16 16:56:04 -08:00
Nicholas Nethercote
589a71f144 Bug 822700 - When DMD is disabled its SizeOf() function shouldn't try to measure non-existent structures. r=jlebar.
--HG--
extra : rebase_source : 21066e5173dbc7e4a6c7615f1b355989bf046082
2012-12-18 15:14:31 -08:00
Kartikaya Gupta
1df23d9355 Bug 822698 - Rename GroupSize to GetGroupSize to fix a gcc 4.6 compilation error on Android. r=njn 2012-12-19 11:24:49 -05:00
Nicholas Nethercote
556c152c54 Bug 821577 - DMD: Fix hang at start-up on Mac. r=jlebar.
--HG--
extra : rebase_source : 39b46f3a7b8aead6e971f55cb0821f443b7368dc
2012-12-13 19:42:47 -08:00
Nicholas Nethercote
42a5e1417d Bug 819817 - DMD: cache calls to NS_DescribeCodeAddress for faster dumping. r=jlebar.
--HG--
extra : rebase_source : 418ef965586c5cafa5623d72d1ae92ea8ee749c2
2012-12-13 16:58:28 -08:00
Ehsan Akhgari
f04c3eb02c Bug 820875 - Reimplement DMD's MutexBase using critical sections; r=bbondy 2012-12-13 19:51:41 -05:00
Ehsan Akhgari
1f48f84d13 Bug 821358 - Port the trace-malloc Windows TLS macros to DMD; r=njn 2012-12-13 19:47:41 -05:00
Nicholas Nethercote
be873a5cc4 Bug 820652 (part 7) - DMD: Fix bug in strdup_. r=jlebar.
--HG--
extra : rebase_source : d15a08687b465c9c63c8a3786fdc7ba2539f2b82
2012-12-12 21:57:23 -08:00
Nicholas Nethercote
942c88c933 Bug 820652 (part 6) - DMD: Don't use LiveBlockKey in LiveBlock. r=jlebar.
--HG--
extra : rebase_source : b65e0d34f6787a0f5031b685ececc61e19d4b0a3
2012-12-12 21:40:01 -08:00
Nicholas Nethercote
308ad9d075 Bug 820652 (part 5) - DMD: Store the block address in LiveBlock. r=jlebar.
--HG--
extra : rebase_source : ff147323054910d946e0023a97726c9e2268f733
2012-12-12 21:16:28 -08:00
Nicholas Nethercote
51ba9ae8ff Bug 820652 (part 4) - DMD: Inline BlockSize into LiveBlock. r=jlebar.
--HG--
extra : rebase_source : a543b4df4cbcecca8c6e59b6722a3a2b7298c2fa
2012-12-12 20:16:20 -08:00
Nicholas Nethercote
70adaf165e Bug 820652 (part 3) - DMD: Distinguish BlockSize and GroupSize. r=jlebar.
--HG--
extra : rebase_source : de31af9d5c00e52a7f775d7e0e11204edcb9e21b
2012-12-11 19:47:46 -08:00
Nicholas Nethercote
74f12beb72 Bug 820652 (part 2) - DMD: Embriefen the hash policy of LiveBlockGroup and DoubleReportBlockGroup. r=jlebar.
--HG--
extra : rebase_source : 41d1190f86cb2514c3b93717be6975d197226474
2012-12-11 19:46:53 -08:00
Nicholas Nethercote
56c4585ece Bug 820652 (part 1) - DMD: Split BlockKey in two, and fix the ensuing fall-out. r=jlebar.
--HG--
extra : rebase_source : 9fdda42f633b209b0111fe6104e08b5028dda8b5
2012-12-11 19:08:38 -08:00
Nicholas Nethercote
924144fe8c Bug 820682 - DMD: Tweak stress mode. r=jlebar.
--HG--
extra : rebase_source : a9f9fe54ae78a7c959479a8818a62a23f6c7fa53
2012-12-11 17:52:04 -08:00
Ehsan Akhgari
20e7bee99c Bug 820875 - Implement MutexBase on Windows; r=bbondy 2012-12-12 11:18:17 -05:00
Nicholas Nethercote
808525a152 Bug 819772 - Add a memory reporter for DMD's data. r=jlebar.
--HG--
extra : rebase_source : d85f4f08b3c0ec5e81bde9caa63699e60a303b33
2012-12-11 13:54:11 -08:00
Nicholas Nethercote
ee1d76a8a8 Bug 819833 (part 1) - DMD: Print PCs at the end of lines. r=jlebar.
--HG--
extra : rebase_source : ce17d41f692c2babb9d7aec9dbca00ab42d10250
2012-12-10 19:26:56 -08:00
Justin Lebar
954ddb8201 Bug 820401 - Default DMD to sample-below=4093. r=njn
Also print out the sample size, since it's no longer explicit in the $DMD envvar.
2012-12-11 18:26:43 -05:00
Nicholas Nethercote
7d32dc00e9 Bug 717853 - Add a native version of DMD. r=jlebar,glandium.
--HG--
extra : rebase_source : 9b824556591abd63b42aa7ff823e9cd25976c162
2012-12-10 16:05:07 -08:00
Mike Hommey
f5c35d6a44 Bug 804303 part 3 - Build jemalloc3 as a replace-malloc library when building with mozjemalloc. r=khuey 2012-12-07 09:32:24 +01:00
Mike Hommey
e9c6d8bfe1 Bug 804303 part 2 - Add ability to dynamically replace or supplement jemalloc implementation. r=jlebar,r=khuey 2012-12-07 09:32:24 +01:00
Mike Hommey
c51f5d814d Bug 804303 part 1 - Cleanup how the mozjemalloc/jemalloc3 glue is set up, attempting to make it clearer. r=jlebar,r=khuey
--HG--
rename : memory/build/extraMallocFuncs.c => memory/build/jemalloc_config.c
rename : memory/mozjemalloc/jemalloc.h => memory/build/mozmemory.h
rename : memory/build/extraMallocFuncs.c => memory/build/mozmemory_wrap.c
2012-12-07 09:32:24 +01:00
Mike Hommey
77fe00e25b Bug 815071 - Update jemalloc3 to commit 6eb84fb. r=jlebar 2012-12-07 09:32:23 +01:00
Gabriele Svelto
192db38ba4 Bug 811740 - Reduce the amount of unused dirty pages kept by jemalloc to 1MiB in B2G. r=jlebar, r=glandium 2012-11-28 17:03:35 +01:00
Gabriele Svelto
f39e18e483 Bug 805855 - Add an extra function to jemalloc to free dirty unused pages. r=glandium 2012-11-08 20:06:50 +01:00
Rafael Ávila de Espíndola
7330a180a0 Bug 807112 - change MOZ_EXPORT_API and MOZ_IMPORT_API to not take the type. r=Waldo. 2012-10-31 18:18:12 -04:00
Jacek Szpot
abf9c51413 Bug 800106: Replace more NS_ALWAYS_INLINEs with MOZ_ALWAYS_INLINE; r=ehsan 2012-10-13 17:52:10 +02:00
Jan Beich
b1967c0ac2 Bug 762445 - Add jemalloc3 glue for heap-committed, heap-dirty in about:memory. r=glandium,jlebar 2012-10-18 16:09:07 +02:00
Jan Beich
b905e6a742 Bug 788955 - Check for malloc_usable_size() and malloc_np.h via autoconf. r=glandium 2012-10-17 16:39:15 +02:00
Jan Beich
7b2766d86d Bug 788955 - Mark some jemalloc functions as weak on BSDs. r=glandium 2012-10-17 16:38:43 +02:00
Jan Beich
90b1515739 Bug 788955 - Without --enable-jemalloc detect and use jemalloc3 in libc. r=glandium 2012-10-17 16:36:49 +02:00
Mike Hommey
212463a61a Bug 799090 - Update jemalloc3 to commit d0ffd8e. r=jlebar 2012-10-17 16:29:28 +02:00
Ehsan Akhgari
ee902c51f9 Backout changeset 0f0797cdb55a (bug 800106) because of Kraken regressions on Windows XP 2012-10-15 14:19:55 -04:00
Chris Jones
353f38f677 Bug 799849: Wrap nothrow libstdc++ allocators. r=glandium 2012-10-13 03:16:53 -07:00
Jacek Szpot
06b915eb2e Bug 800106: replace NS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE; r=ehsan 2012-10-13 17:52:10 +02:00
Justin Lebar
db3de0d55d Bug 787675 - When jemalloc hits a fatal assertion, crash within a new stack frame, in the hopes of making the crashstats more understandable. r=glandium 2012-09-03 22:01:24 -04:00
Michael Wu
388d00feee Bug 780287 - Don't wrap jemalloc on gonk, r=glandium 2012-08-06 16:22:26 -04:00
Mike Hommey
70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Jan Beich
61da184ec9 Bug 778058 - Don't #define _malloc_message to malloc_message in jemalloc: FreeBSD's jemalloc-3.0.0 exports malloc_message (with different arguments) in stdlib.h. r=jlebar 2012-07-29 10:54:44 -04:00
Jan Beich
a0d130c9ab Bug 778056 - malloc_usable_size is also available in libc on FreeBSD, so use it in mozalloc.cpp. r=jlebar 2012-07-27 14:14:39 -04:00
Mike Hommey
ad1fa9fabe Bug 772423 - Hook mozjemalloc's abort(). r=jlebar 2012-07-11 16:55:39 +02:00
Justin Lebar
1132bc2fa6 Bug 772338 - Abort when VirtualAlloc fails in jemalloc's pages_commit routine. r=glandium 2012-07-10 09:25:25 -04:00
Justin Lebar
19d1ccf54a Bug 766250 - Part 2: Split MOZ_TEMP_INVESTIGATION into MOZ_TEMP_INVESTIGATION and MOZ_JEMALLOC_HARD_ASSERTS. r=glandium
The former is temporary, the latter is not.
2012-06-20 01:22:40 -04:00
Justin Lebar
ad9a69c11a Bug 766250 - Part 1: Enable more release-time jemalloc assertions. r=glandium 2012-06-20 01:22:40 -04:00
Justin Lebar
60d3e02dce Bug 764192 - Followup, fix red. r=me 2012-06-13 09:21:06 -04:00
Justin Lebar
e7dbf347f4 Bug 764192 - Enable some jemalloc assertions at release time in the hopes of catching heap corruption. r=glandium
This is disabled for the release and esr channels.

--HG--
extra : rebase_source : 0b668cfbb63d6478a4200a414cd0dafa0cfba1ce
2012-06-13 09:10:12 -04:00
Jacek Caban
c4079db44b Bug 761859 - Missing MOZALLOC_EXPORT causes link failure on mingw r=ted 2012-06-11 09:51:06 +02:00
Mike Hommey
b83e644292 Bug 762446 - Hook jemalloc's abort. r=jlebar 2012-06-11 08:12:40 +02:00
Mike Hommey
1510749815 Bug 580408 - Glue for jemalloc 3.0.0. r=khuey 2012-06-07 10:41:59 +02:00
Mike Hommey
b5bd6b36d5 Bug 580408 - Import jemalloc 3.0.0. r=khuey,r=gerv 2012-06-07 10:41:58 +02:00
Mike Hommey
caf974ce43 Bug 580408 - Move Mozilla fork of jemalloc to memory/mozjemalloc. r=khuey
--HG--
rename : memory/jemalloc/Makefile.in => memory/mozjemalloc/Makefile.in
rename : memory/jemalloc/jemalloc.c => memory/mozjemalloc/jemalloc.c
rename : memory/jemalloc/jemalloc.h => memory/mozjemalloc/jemalloc.h
rename : memory/jemalloc/jemalloc_types.h => memory/mozjemalloc/jemalloc_types.h
rename : memory/jemalloc/linkedlist.h => memory/mozjemalloc/linkedlist.h
rename : memory/jemalloc/osx_zone_types.h => memory/mozjemalloc/osx_zone_types.h
rename : memory/jemalloc/ql.h => memory/mozjemalloc/ql.h
rename : memory/jemalloc/qr.h => memory/mozjemalloc/qr.h
rename : memory/jemalloc/rb.h => memory/mozjemalloc/rb.h
2012-06-07 10:41:58 +02:00
Jeff Walden
e00457555c Bug 761859 - Make mozalloc_abort use MOZ_CRASH to crash. r=ted 2012-06-05 16:49:30 -07:00
Mike Hommey
0a562bc5d0 Bug 758010 - Wrap operator new/delete to jemalloc on Android. r=jlebar 2012-05-31 23:49:03 +02:00
Gervase Markham
68d38d677f Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Mike Hommey
11b04e4bcf Bug 758010 - Wrap operator new/delete on Android. r=khuey 2012-05-26 10:21:33 +02:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Matt Brubeck
60b5d7f292 Back out c209fea124e1 (bug 754198) because of Win64 build failure 2012-05-11 13:23:49 -07:00
Fabrice Desré
5397f4846a Bug 754198 - Warning treated as error in jemalloc.c. Build busted. [r=jlebar,bsmedberg] 2012-05-11 12:34:24 -07:00
Benjamin Smedberg
433fd36140 Bug 737164 prerequisite - move mozilla::fallible_t to its own header so that everyone can reference it reasonable, r=cjones
--HG--
extra : rebase_source : 1f0e042f6d639b960c85f7813346e82afcf27861
2012-05-08 12:30:37 -04:00
Mike Hommey
876a7d7818 Bug 751482 - Move wcsdup and je_dumb_free_thunk out of jemalloc.c. r=jlebar 2012-05-04 09:47:00 +02:00
Mike Hommey
a29da17198 Fixup for bug 736564 - Ship libmemory.a in the SDK instead of libjemalloc.a. r=ted 2012-05-04 09:46:27 +02:00
Mike Hommey
4079d49a02 Bug 736564 - Ship mozglue and jemalloc libraries in the SDK. r=bsmedberg,r=ted
As one import library on Windows, as one shared library on OSX and Android,
and as two separate static libraries on systems where mozglue is a static
library.
2012-05-03 08:36:12 +02:00
Mike Hommey
9cc7654e5e Bug 747322 - Fix jemalloc mmap wrapper for s390x. r=jlebar,a=npotb 2012-04-23 08:31:55 +02:00
Gian-Carlo Pascutto
12e5d134c7 Bug 743715 - Cannot build Fennec without jemalloc. r=glandium 2012-04-11 14:12:34 +02:00
Mike Hommey
502771afd6 Bug 738709 - Don't call pthread_atfork from jemalloc on OSX. r=jlebar 2012-04-05 09:20:54 +02:00
Mike Hommey
609e12c771 Bug 738176 - Completely disable jemalloc when it's supposed to be disabled on OSX, and cleanup exposed APIs. r=jlebar,r=khuey 2012-04-05 09:20:53 +02:00
Mike Hommey
3ef23117af Bug 736963 - Move jemalloc'ed strdup/strndup definitions. r=jlebar,r=ted 2012-03-31 09:23:19 +02:00
Mike Hommey
6853dfab1c Bug 737084 - Do pthread_atfork in jemalloc on mac and android. r=blassey,r=khuey 2012-03-22 08:01:51 +01:00
Mike Hommey
92ee6771d6 Bug 736959 - Don't wrap PR_Malloc and other NSPR allocation functions. r=khuey 2012-03-22 08:01:27 +01:00
Michael Wu
599e26085d Bug 737175 - Make jemalloc build on ICS, r=khuey,glandium 2012-03-18 23:33:46 -04:00
Justin Lebar
f20f0ea954 Bug 731696 - Revert jemalloc isalloc test code added in bug 703087. r=khuey 2012-02-29 11:25:00 -05:00
Jonathan Kew
0226614b64 bug 723472 - don't trigger an OOM abort on a zero-size allocation. r=cjones 2012-02-02 14:34:22 +00:00
Nicholas Nethercote
7559a70a04 Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Benjamin Smedberg
587594165b Bug 716638 - Annotate the size of a failed allocation due to OOM and submit it with the crash report, r=ted
--HG--
extra : rebase_source : 5b7d10cb2e117deabb89b75ec3f3b1a221b3c80b
2012-01-24 11:08:51 -05:00
Mike Hommey
beeba9e288 Bug 697301 - Avoid the compiler making optimizations to mozalloc_abort that end up corrupting stack traces. r=cjones 2012-01-13 07:24:17 +01:00
Ms2ger
488d00a8b6 Bug 717441 - Backout bug 715093 / changeset d5f3e38021fd for Fennec crashes. 2012-01-12 21:35:48 +01:00
Ms2ger
83e99e1202 Bug 715093 - Get rid of MOZALLOC_INLINE in favour of MOZ_ALWAYS_INLINE; r=glandium 2012-01-11 09:22:16 +01:00
Mike Hommey
e53de290fb Bug 701371 - Rename mozutils to mozglue, and move it to top-level. r=khuey,a=brendan
--HG--
rename : memory/mozutils/Makefile.in => mozglue/Makefile.in
rename : memory/mozutils/Makefile.in => mozglue/build/Makefile.in
rename : memory/mozutils/dummy.cpp => mozglue/build/dummy.cpp
rename : memory/mozutils/fixcrt.py => mozglue/build/fixcrt.py
rename : memory/mozutils/mozutils.def.in => mozglue/build/mozglue.def.in
2011-12-28 08:24:02 +01:00
Jacek Caban
e46b6273a6 Bug 712584 - Properly use .def files on mingw builds r=khuey 2011-12-27 10:51:53 +01:00
Jeff Walden
9098fa4182 Bug 711775 - Implement MOZ_NORETURN to encapsulate this-function-doesn't-return semantics. r=cjones
--HG--
extra : rebase_source : d56f3ef47e11c42b5fe6a442e13fd6202208914f
2011-12-17 16:45:29 -05:00
Nicholas Nethercote
6bbcf3b4f8 Bug 704400 - Implement --enable-dmd. r=khuey. 2011-12-08 19:09:36 -08:00
Ben Turner
bddb2824ad Bug 703660 - IndexedDB: Compress structured clone data with Snappy. r=sicking+khuey. 2011-12-07 15:24:20 -08:00
Phil Ringnalda
ca22b9cadc Back out 8941e2b7a0bf (bug 703660) for Windows PGO build failures 2011-12-07 08:41:02 -08:00
Ben Turner
4850cef1dd Bug 703660 - IndexedDB: Compress structured clone data with Snappy. r=sicking+khuey.
--HG--
extra : transplant_source : 55%9D%86m%D8%18%87J%5C%E1%E3%93P%AF.%B7%D0%8EQ
2011-12-07 00:10:13 -08:00
Igor Bukanov
d68e7d13ca bug 571209 - option to use compile-time constants, not parameters configured at runtime, for maximal jemalloc performance. r=justin.lebar 2011-10-26 10:17:34 +02:00
Nicholas Nethercote
6c6258e659 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Justin Lebar
c116bea173 Bug 703087 - (Temporarily) enable assertion in isalloc_validate in release builds, to test for potential ozone_size corruption. r=khuey 2011-11-16 17:48:02 -05:00
Justin Lebar
e7a1630524 Back out bug 703087 (rev b5c891d2e68a) due to red. 2011-11-21 09:27:36 -05:00
Justin Lebar
9594c666fe Bug 703087 - (Temporarily) enable release-build assertion in isalloc_validate in release builds, to test for potential ozone_size corruption. r=khuey 2011-11-16 17:48:02 -05:00
Justin Lebar
f12b89e5cb Bug 702250 - Disable jemalloc on mac 10.5 due to crash in ozone_size (apparent OS bug). r=khuey
This is likely to regress a number of benchmarks.

--HG--
extra : rebase_source : 6831d8b3a846ec3193449132bef1648d426356db
2011-11-21 09:02:17 -05:00
Justin Lebar
0ee51ee888 Bug 697085 - Link to Mac malloc header in memory/jemalloc/osx_zone_types.h. DONTBUILD r=gerv
--HG--
extra : rebase_source : f5d804930cdfc93e6e0460fa28f1625b4e66e277
2011-11-20 21:19:00 -05:00
Phil Ringnalda
4c80c99a2c Back out a3fcfb7d6647 (bug 702250) because it turned 10.5 opt tests pure orange 2011-11-17 19:41:44 -08:00
Justin Lebar
424d3e2729 Bug 702250 - Disable jemalloc on mac 10.5 due to crash in ozone_size (apparently due to OS bug). r=khuey
This will likely regress a number of benchmarks.
2011-11-17 18:06:23 -05:00
Michael Wu
5dd6a67845 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Justin Lebar
5dec9d83e1 Bug 699395 - Modify zone_good_size to call je_malloc_usable_size_in_advance. r=njn
--HG--
extra : rebase_source : 24feb93e8ceebd74a8dbcb0084f7f27ecf6495e3
2011-11-07 16:32:36 -05:00
Justin Lebar
4199c112c7 Bug 699101 - Warn when NO_MAC_JEMALLOC is set on i386 machines, because it doesn't work there. r=khuey 2011-11-04 11:41:53 -04:00
Nicholas Nethercote
c2b905ac11 Bug 678977 - Teach sqlite to use jemalloc directly when applicable. code=nnethercote,khuey. r=khuey,sdwilsh,jlebar. 2011-11-03 20:53:41 -07:00
Justin Lebar ext:(%2C%20Steven%20Michaud%20%3Csmichaud%40pobox.com%3E)
890ef87b41 Bug 694896 - Fix jemalloc hangs and crashes on Mac 10.7, enable jemalloc on Mac 10.7, and make mmap'ing pages in jemalloc faster on Linux and Mac. r=khuey 2011-10-25 16:25:50 -04:00
Ed Morley
9f7eac8d98 Backout changeset 242bbbe83dda (bug 694896) for build failures on OS X; a=khuey 2011-11-03 17:39:39 +00:00
Justin Lebar ext:(%2C%20Steven%20Michaud%20%3Csmichaud%40pobox.com%3E)
aaa8fa4e5d Bug 694896 - Fix jemalloc hangs and crashes on Mac 10.7, enable jemalloc on Mac 10.7, and make mmap'ing pages in jemalloc faster on Linux and Mac. r=khuey 2011-10-25 16:25:50 -04:00
Justin Lebar
515237a036 Back out bug 694896, rev 62ba86c7; wrong patch was checked in. 2011-11-03 12:57:40 -04:00
Justin Lebar ext:(%2C%20Steven%20Michaud%20%3Csmichaud%40pobox.com%3E)
475732f933 Bug 694896 - Fix jemalloc hang and crash on Mac 10.7, and enable jemalloc on 10.7. r=khuey 2011-10-20 17:26:47 -04:00
Justin Lebar
0fdb8e1f12 Bug 694335 - Enable jemalloc on MacOS 10.5. r=khuey
Note: Our RSS metrics should show that this patch regresses memory usage, but they're wrong.  See the bug for details.
2011-10-27 11:28:45 -04:00
Justin Lebar
ca3025bf0b Bug 693404 - Part 1: On MacOS, add public jemalloc function to purge MADV_FREE'd pages, making our RSS reflect reality. r=khuey 2011-10-24 13:23:47 -04:00
Justin Lebar
58f66fccdb Back out bug 693404 (2f7668cd67bc, 3db099ca452a) due to red. 2011-10-24 14:02:16 -04:00
Justin Lebar
8957edb015 Bug 693404 - Part 1: On MacOS, add public jemalloc function to purge MADV_FREE'd pages, making our RSS reflect reality. r=khuey
--HG--
extra : rebase_source : fb043fcb06963ed2d5f94e8f4659da94f43ed014
2011-10-24 13:23:47 -04:00
Jeff Muizelaar
bcc953b354 Bug 695171. Make our operator new throw std::bad_alloc. r=cjones
If new doesn't throw bad_alloc the compiler emits a null check after to avoid
calling the constructor. http://llvm.org/bugs/show_bug.cgi?id=10895

Adding throw(std::bad_alloc) shaves 57KB of .text off a gcc mac build and 61KB off
a clang build.

--HG--
extra : rebase_source : 098c1f5df472bcc572b812fe5d4f12c8eadf14d2
2011-10-18 14:19:23 -04:00
Justin Lebar
975f0d3e57 Bug 682437 - Add memory reporter for History::mObservers. r=bz
--HG--
extra : rebase_source : f280a6beefd32319816ff8720f7bf65c04343b1e
2011-09-14 17:37:45 -07:00
Justin Lebar
a0deb3a0e8 Bug 681183 - Make jemalloc_stats.committed meaningful on *nix. r=khuey 2011-10-10 13:54:42 -04:00
Justin Lebar
06bf4b7f8a Bug 683597 - Change jemalloc's accounting for huge allocations to round up to the next page boundary, not to the next MB. r=khuey
--HG--
extra : rebase_source : 4449e8b33af835be729c157241bfeed0f6725c21
2011-10-07 14:39:53 -04:00
Justin Lebar
50f70bc91e Bug 691003 - jemalloc's minimum alignment must be word sized on *nix. r=khuey
--HG--
extra : rebase_source : 24c31b1afcc10af36f6d87ec6ec3e462b18cceff
2011-10-05 14:03:39 -04:00
Paul Biggar
6e56dee477 Bug 414946: Re-enable jemalloc on OSX 10.6 only. r=khuey 2011-07-25 17:20:18 -07:00
Makoto Kato
89bf0597c8 Bug 681202 - Add Android x86 target. r=glandium 2011-09-29 13:39:03 +09:00
Mike Hommey
402b882927 Backout the backout of e5815c156b6c (bug 683096), 9ca928d8095c (merge), a286edb8ca4b (bug 683875), 61dc35b8f63f (bug 683171), b0741ae44def (bug 683875), 8e01bc314326 + e2697c06468f (bug 677501), 805e28e85577 (bug 680440) 2011-09-03 08:19:06 +02:00
Ed Morley
ee10afb48a Backout e5815c156b6c (bug 683096), 9ca928d8095c (merge), a286edb8ca4b (bug 683875), 61dc35b8f63f (bug 683171), b0741ae44def (bug 683875), 8e01bc314326 + e2697c06468f (bug 677501), 805e28e85577 (bug 680440) for Win opt orange and purple galore, on a CLOSED TREE 2011-09-03 04:35:21 +01:00
Kyle Huey
5aba5a29af Merge b-s to m-c. 2011-09-02 17:35:11 -04:00
Mike Hommey
3238236e63 Bug 677501 - Add a dummy symbol to libmozutils until bug 662814 lands. r=me 2011-09-01 14:12:13 +02:00
Mike Hommey
8285bb9468 Bug 677501 - Build a mozutils library containing jemalloc and other things. r=khuey
--HG--
rename : memory/jemalloc/Makefile.in => memory/mozutils/Makefile.in
rename : memory/jemalloc/fixcrt.py => memory/mozutils/fixcrt.py
rename : memory/jemalloc/jemalloc.def => memory/mozutils/mozutils.def.in
2011-09-01 14:12:10 +02:00
Mike Hommey
4f09641fb4 Bug 680440 - Clean up jemalloc linkage. r=khuey 2011-09-01 14:11:56 +02:00
Kyle Huey
134b8fad07 Merge m-c to b-s. 2011-08-31 07:52:43 -04:00
Jim Chen
bb78e1b03d Bug 680190 - Notify jemalloc when forking on Android; r=cjones 2011-08-30 17:11:36 -07:00
Kyle Huey
26a42afe84 Bug 682313: Fix jemalloc to export _strdup and _wcsdup so that we don't have an allocator mismatch. r=jimm 2011-08-30 17:07:51 -04:00
Ed Morley
c62c25def9 Merge last green changeset on m-i to m-c 2011-09-01 08:41:18 +01:00
Chris Jones
aa1ba63c54 Bug 669403: Always build both VC9 and VC10 exception-wrapping hackery into the Gecko SDK. r=bsmedberg 2011-08-31 11:05:20 -07:00
Jan Horak
6dca5e5eaf Bug 589735 - JS engine is completely broken on ia64 - jemalloc part; r=pbiggar 2011-08-29 17:26:22 +01:00
Mike Hommey
7f22909cc5 Bug 680373 - Link jemalloc into mozutils instead of mozalloc on Android. r=blassey,r=pbiggar 2011-08-24 12:55:13 +02:00
Mike Hommey
9877d798b0 Bug 678195 - Remove old style jemalloc. r=khuey 2011-08-23 15:43:17 +02:00
Mike Hommey
171858fa54 Bug 654049 - Use global optimization flags for jemalloc, cairo, pixman and sqlite. r=ted 2011-07-21 08:32:23 +02:00
Neil Rashbrook
7d21edcdd1 Bug 667962 Try to make jemalloc build with gmake as well as pymake r=khuey 2011-07-28 15:28:13 +01:00
Ms2ger
e251aa328f Backout bug 673197, bug 667962 (changesets 83ef35b794ce and 370bcc140023) for winopt bustage 2011-07-27 23:25:32 +02:00
Neil Rashbrook
b0c6055481 Bug 667962 Try to make jemalloc build with gmake as well as pymake r=khuey 2011-07-27 20:24:11 +01:00
Marco Bonardo
77013a6607 Merge mozilla-inbound and mozilla-central 2011-07-08 11:53:56 +02:00
Alon Zakai
03ee59ca0a Bug 644707 - Avoid calling system abort(), generate useful stack traces through a manual segfault instead. r=ted 2011-07-07 14:09:52 -07:00
Makoto Kato
9f4562e96e Bug 668151 - Bug 515492 (VS2010 jemalloc support) doesn't work on Win64. r=khuey 2011-07-01 10:40:30 +09:00
Paul Biggar ext:(%2C%20Jason%20Evans%20%3Cjasone%40canonware.com%3E%20and%20Dale%20Kim%20%3Cdalekim1%40illinois.edu%3E)
b960b62118 Bug 414946 (part 1): Fix jemalloc on Mac, but leave disabled (r=pavlov)
Overwrite the OSX default zone allocator, taking into account the malloc_zone_t
version (supported versions are 3, 6, and 8) for Leopard, Snow Leopard and
Lion. jemalloc can be dynamically disabled for unknown malloc_zone_t versions,
for OSX 10.8 and beyond.

The changeset does not enable jemalloc, to allow for easy disabling if there's
a problem. It will be enabled in the next changeset.

This should be a 15-20% improvement in memory usage.
2011-05-21 20:27:00 -07:00
Kyle Huey
23be178828 Bug 515492: Put back the last line because I'm too clever by half. a=mfbt 2011-06-27 20:56:05 -07:00
Kyle Huey
3f9ef38ff1 Bug 515492: Revert some bogus changes for hopefully the last android build bustage fix. 2011-06-27 20:17:22 -07:00
Kyle Huey
12d69b1d7d Bug 515492: Android build bustage fix. 2011-06-27 19:20:03 -07:00
Kyle Huey
6bcb147a93 Bug 515492: Android build bustage fix. 2011-06-27 17:30:53 -07:00
Kyle Huey
9cb6ce116c Bug 515492: Android build bustage fix. 2011-06-27 16:59:20 -07:00
Kyle Huey
0a75fad44f Bug 515492: Android build bustage fix. 2011-06-27 16:28:36 -07:00
Kyle Huey
068cbbf275 Followup fixes for Bug 515492. 2011-06-27 16:11:45 -07:00
Kyle Huey
224832d24d Bug 515492: Make jemalloc work on VS 2010. r=ted,pbiggar 2011-06-27 12:44:51 -07:00
Mike Hommey
a1346a7c29 Bug 662224 - Define NS_ATTR_MALLOC and NS_WARN_UNUSED_RESULT in xpcom-config.h, and include it from mozalloc.h. r=bsmedberg 2011-06-07 03:09:46 +02:00
Paul Biggar
3c0e4b2d34 Bug 659632: Refactor memalign visiblity to use MOZ_MEMORY_ELF (r=respindola) 2011-05-26 06:58:10 -07:00
Rafael Ávila de Espíndola
2f6db18989 Bug 657528 - Use a volatile pointer to force a trap; r=ehsan
Clang issues the warning:
mozalloc_abort.cpp:64:22: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]

And sure enough, TouchBadMemory is currently broken with clang. That breaks mozalloc_abort
which breaks NS_DebugBreak which breaks the crashreport test.
2011-05-16 21:07:06 -04:00
Ed Morley
203e003900 Bug 655480 - Remove WinCE code from memory/* ; r=pbiggar 2011-05-08 10:29:59 +02:00
Rafael Ávila de Espíndola
89b1894cdc Bug 635790 - Don't depend on gnu89 inline. r=pbiggar
--HG--
extra : rebase_source : e4b59ec7be7ca38b1215d4a9fb6079788de14481
2011-04-27 10:05:07 +02:00
Landry Breuil
e37388df67 Bug 633857 - missing #includes for OpenBSD (mozalloc part). r=cjones 2011-04-14 17:49:38 +09:00
timeless@mozdev.org
1b6730928a Bug 618790 handling of chunk in arena_run_alloc while loop is odd
r=jasone
2011-03-28 17:26:33 -04:00
Makoto Kato
f4d7834641 Bug 625753 - 64-Bit Firefox 4.0b10pre Crash Reports [@ malloc_rtree_set ]. r=ted a=bsmedberg 2011-02-09 15:50:13 +09:00
Makoto Kato
bec250094e Bug 625315 - Invalid ssize_t define on Windows x64. r=jasone a=bsmedberg 2011-02-03 14:36:15 +09:00
Vladimir Vukicevic
6209c787e9 Bug 616061 - Disable TLS in jemalloc on Android, r=mwu a=blassey 2011-01-25 15:22:45 -05:00
Kazuhi Ohta
4a981f31f1 Bug 437451. keep arenas_lock during fork to avoid deadlock, r=karlt,a=bsmedberg 2011-01-17 10:49:32 +13:00
Ryan VanderMeulen
017ef708cc Bug 578546 - Fix MSVC warning spam by adjusting ifdef to include MSVC. r=cjones a=benjamin 2010-11-16 10:19:23 +01:00
Walter Meinl
656f6a5529 Bug 577011 there's another typo a=bustage 2010-11-09 19:29:09 +08:00
Walter Meinl
0fd4debfdf Bug 577011 fix typo of last commit a=bustage 2010-11-09 19:17:10 +08:00
Walter Meinl
859a94a18d Bug 577011 - [OS/2] make _declspec unconditionally default symbol export r=daveryeo@telus.net a=benjamin
--HG--
extra : rebase_source : f73a926174bd7905f177b2e914492e42b90ac8c0
2010-11-09 11:13:03 +01:00
Chris Jones
52d0f01838 Bug 550611: Make nsTArray optionally infallible. sr=bsmedberg a=blocking
--HG--
rename : xpcom/glue/nsTArray.cpp => xpcom/glue/nsTArray-inl.h
2010-11-08 20:48:59 -06:00
Jory A. Pratt
23abde6d1a Bug 593911 - Check for dlopen in the libc too. r=khuey a=bsmedberg 2010-11-05 18:26:51 +01:00
Chris Jones
407adf7a6a Band-aid for bug 602558: Avoid the VS10 STL wrappers getting tangled up in <utility>. r=vlad a=bustage 2010-10-07 17:57:47 -05:00
Mike Hommey
dc6784ecfc Bug 435683 - Use syscall() for mmap and munmap and disable ncpus in jemalloc to work around deadlocks with LD_PRELOADed libraries. r=jasone, a2.0=bsmedberg
--HG--
extra : rebase_source : 56b4f87c151bbdb6cb9a4b22373af3ff33339b79
2010-08-18 19:46:59 +02:00
Chris Jones
6f8d9b52ca Bug 577831: Add mozalloc to XUL SDK. r=bsmedberg 2010-08-05 13:53:43 -05:00
Robert Sayre
103fa1295e Merge mozilla-central to tracemonkey. 2010-06-21 18:01:14 -07:00
Igor Bukanov
a9b76bf69b bug 571332 - jemalloc - avoiding the null check in the free method for non-huge allocations. r=jasone 2010-06-11 16:22:14 +02:00
Brad Lassey
e64a60da7d bug 559263 - make jemalloc work with android, follow up patch r=ted
(transplanted from 098cf0d0c599fdcfedbc6ee5aadf01259e9dcd09)

--HG--
extra : transplant_source : %09%8C%F0%D0%C5%99%FD%CF%ED%BCn%E5%AA%DF%01%25%9E%9D%CD%09
2010-06-05 13:15:50 -04:00
Chris Jones
9e8fb2c03a Bug 551071: Suppress valgrind-reported "mismatched free()" (false alarm) of chromium objects by using mozalloc there (complements STL wrappers). Add a gross hack to prevent mozalloc macros from conflicting with methods in jscntxt.h. r=bent r=bsmedberg dependent-r=brendan 2010-06-04 18:16:34 -05:00
Jacek Caban
1821e61c09 Bug 558928 - Use DebugBreak instead of __debugbreak. r=ehsan
--HG--
extra : rebase_source : b4344a0fff52c708b88871c186c7f740aebc4124
2010-05-21 11:17:00 -04:00
Saint Wesonga
e6180061d8 Bug 570553 - mozalloc.h:208:1: warning: C++ style comments are not allowed in ISO C90. r=vlad 2010-06-16 18:54:25 +02:00
Makoto Kato
4bfdde6d45 Bug 521193 - jemalloc support for Windows x64 build (VC 2005 / 2008). r=ted
--HG--
rename : memory/jemalloc/crtvc8sp1.diff => memory/jemalloc/crtvc8sp1-intel.diff
rename : memory/jemalloc/crtvc9sp1.diff => memory/jemalloc/crtvc9sp1-intel.diff
2010-06-03 19:12:26 +09:00
Vladimir Vukicevic
73cbd73f4a b=566447; add presshell memory reporter; r=bz 2010-05-31 19:19:35 -07:00
Chris Jones
832a98be02 Bug 557935: Show jemalloc stats in about:memory on linux. r=vlad 2010-05-26 14:40:52 -05:00
Brad Lassey
74db90d53e bug 559263 - implement jemalloc for android r=vlad 2010-05-25 11:28:14 -04:00
Brad Lassey
ff289c5672 pushing white space change to trigger a new build 2010-05-24 17:42:39 -04:00
Benoit Jacob
ca83ae7876 b=566017; allow jemalloc posix_memalign to handle 0-sized allocs; r=jevans 2010-05-19 13:46:08 -07:00
Chris Jones
96fcae4c10 Bug 558928: Use __debugbreak() to abort on windows. r=ehsan 2010-05-18 20:53:53 -05:00
Chris Jones
cd90ce49a1 Bug 564185: Centralize the breakpad-triggering abort code in mozalloc and use |*NULL| to abort on mac, since abort() doesn't trigger breakpad. r=ted 2010-05-18 20:53:52 -05:00
Jacek Caban
903fcea3d7 Bug 557000 - Don't use GCC_VERSION to detect GCC in makefiles. r=ted 2010-05-01 11:46:25 +02:00
Daniel Holbert
7d1e5ba861 Bug 564261: fix build warning about C++ style comment in mozalloc.h. r=cjones 2010-05-11 12:07:33 -07:00
Chris Jones
76b03a561a Bug 560723: Interpose non-throwing mozilla variants of VC10 STL functions that throw exceptions. r=ehsan sr=bsmedberg
--HG--
rename : memory/mozalloc/throw_msvc.cpp => memory/mozalloc/msvc_throw_wrapper.cpp
2010-04-28 19:38:41 -05:00
Takanori MATSUURA
3c1494cd08 Followup to bug 557060: Fix missing #include <string.h>. r=cjones 2010-04-21 23:41:41 -05:00
Chris Jones
7af55eecbb Bug 550692: Wrap posix_memalign, memalign, and valloc if jemalloc provides them and the OS doesn't. r=bsmedberg 2010-04-21 23:41:40 -05:00
Chris Jones
ce99d8226f Bug 557060: Interpose _Throw() on MSVC and centralize pseudo-throw code in mozalloc. r=ehsan sr=bsmedberg 2010-04-20 15:12:02 -05:00
Marco Perez
7fda312bc5 Bug 550666: Fix FreeBSD bustage in mozalloc. r=bsmedberg 2010-04-10 17:29:46 -04:00
Chris Jones
aeb1d69308 Bug 550401: Do the __declspec import/export dance in mozalloc to avoid MSVC warnings. r=bsmedberg 2010-04-08 13:05:02 -05:00
Ginn Chen
6fd562ba57 Bug 550371 mozalloc failed to build on Solaris r=bsmedberg 2010-04-07 14:16:32 +08:00
Jacek Caban
c7fbbd516c Bug 441324 - mingw fix 2010-03-06 05:59:00 -06:00
Mats Palmgren
693b5f56ed Implement std::nothrow variants of operator new/delete. b=550805 r=cjones 2010-03-14 20:56:47 +01:00
Brad Lassey
daab44389b bug 551098 - windows mobile crashes on start up since xmalloc landing r=cjones 2010-03-08 22:45:51 -05:00
Takanori MATSUURA
267ef2df77 Bug 526389 - Skip redefinition of memory allocation functions for MacOS X and Linux. r=jasone 2010-03-07 10:53:46 +01:00
Walter Meinl
65cceb90ab Bug 550542: [OS/2] Followups for xmalloc r=cjones 2010-03-06 12:58:04 -05:00
Chris Jones
90e5b2265a Bug 441324, part 3: Configure and build changes for libmozalloc. r=bsmedberg 2010-03-03 23:02:57 -06:00
Chris Jones
58d2b77983 Bug 441324, part 2: Implement libmozalloc with support for fallible and infallible malloc et al. and |operator new|s. r=bsmedberg 2010-03-03 23:02:56 -06:00
Jason Evans
9dafcbbd25 Bug 515556 - Fix jemalloc committed memory statistics. r=vlad 2009-11-10 16:01:08 -08:00
David Mandelin
e1654c8442 Bug 526152: make jemalloc's memalign support alignments less than pointer size, r=pavlov 2009-11-03 18:19:58 -08:00
David Mandelin
370a86b518 Bug 515211: remove memory reserve feature from jemalloc, r=jasone 2009-11-02 13:02:37 -08:00
David Mandelin
b8fb573849 Backed out changeset 109b74e8e902 due to tinderbox bustage (was bug 515211) 2009-10-30 11:15:03 -07:00
David Mandelin
e82d146136 Bug 515211: remove memory reserve feature from jemalloc, r=jasone 2009-10-30 11:02:38 -07:00
Brian Crowder
92f6d220fd Backed out changeset 1a7c75165427 (landed way more than whitespace changes, woops) 2009-10-20 12:33:42 -07:00
Brian Crowder
18b3b9db47 fixing whitespace here, r=blassey 2009-10-20 12:26:03 -07:00
Takeshi Ichimaru
8b8c67adf8 Bug 521182 remove -arch:SSE2 from crtvc9sp1.diff r=ted 2009-10-09 00:07:15 +09:00
Vladimir Vukicevic
083881d5f9 b=515354; implement "about:memory", jemalloc_stats export; r=ted 2009-10-03 00:21:30 -07:00
Chris Jones
708e2e04ae Backed out changeset 8cbc47eee659 2009-10-02 18:09:08 -05:00
Chris Jones
f2df9d3504 bug 441324: implement infallible ::operator new(), malloc() and friends. make |new Foo()| infallible, but leave |malloc()| fallible for the time being. r=blassey sr=bsmedberg,vlad 2009-10-01 21:50:09 -05:00
Vladimir Vukicevic
7c4a9a0ff3 b=416117; allow building jemalloc on windows with vc9sp1; r=ted
--HG--
rename : memory/jemalloc/crtsp1.diff => memory/jemalloc/crtvc8sp1.diff
2009-09-22 13:00:18 -07:00
Ted Mielczarek
f2d96f1b3d bug 508861 - Build/ship the C++ runtime with MSVC/jemalloc. r=bsmedberg
--HG--
extra : rebase_source : 3ce54c05f07236d49469b66c695bfac3ccef06af
2009-08-17 13:13:37 -04:00
Karl Tomlinson
77be8894d4 b=493541 hook jemalloc into glibc's malloc r=bsmedberg 2009-07-30 15:15:50 +12:00
Ted Mielczarek
ea4d41da0d bug 468447 - Nonfatal "NMAKE : fatal error U1052: file 'makefile.sub' not found" in every single log masks real errors in failure logs. r=bsmedberg
--HG--
extra : rebase_source : a4a468e05352c69e1e9cf1e1d2148f9f0ca13b63
2009-05-11 15:54:39 -04:00
Vladimir Vukicevic
58c5594f79 b=488608; enable jemalloc on CE6; r+sr=stuart 2009-04-24 10:31:18 -07:00
Vladimir Vukicevic
d74478825c Backed out changeset 1eec75c27e2f 2009-04-24 10:43:19 -07:00
Vladimir Vukicevic
ea2f5a27fc b=488608; enable jemalloc on CE6; r+sr=stuart 2009-04-24 10:31:18 -07:00
Ted Mielczarek
9778d6ab76 bug 487396 - fix some of the jemalloc windows build madness. r=bsmedberg 2009-04-20 06:56:23 -04:00
Benjamin Smedberg
f7437dbe2c Bug 485410 - Quote jemalloc patchery a little more carefully, and make it fail if it doesn't work, r=ted 2009-03-20 10:18:45 -07:00
Brad Lassey
9cdd265378 bug 478044 - Addresses problems with reallocating unaligned memory on windows ce r=pavlov, jasone 2009-03-31 12:27:25 -04:00
Brad Lassey
71225766d2 bug 478044 - enable jemalloc for windows ce r=stuart, jasone 2009-03-23 21:19:26 -04:00
Jason Evans
b94cdf2458 Bug 478576 - infinite loop in jemalloc:chunk_recycle_reserve; r=pavlov
Avoid an infinite loop if the malloc reserve is depleted and there are no
registered event notification handlers.
2009-02-21 03:09:22 +01:00
Ginn Chen
6e2eed518c Bug 457189 to use MAP_ALIGN to request chunksize-aligned blocks from mmap r=jasone 2009-02-02 18:50:19 +08:00
Daniel Holbert
4301671b45 Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg 2009-01-21 22:55:08 -08:00
tglek@mozilla.com
cd3f681e04 Bug 465127 - Disable jemalloc page file support (r=bsmedberg, r=jasone) 2008-12-11 15:37:48 -08:00
Taras Glek
a2d1f0b515 Bug 464995 - avoid reads of size 1 in jemalloc; r=benjamin 2008-12-10 15:49:43 +01:00
Taras Glek
7ec4a6d447 Bug 464995 - avoid reads of size 1 in jemalloc. r=jasone,sr=stuart 2008-11-20 10:48:51 -08:00
Jason Evans
9eba2e7831 Bug 460933: Call pthread_atfork() to prevent potential deadlock after forking. [r=stuart] 2008-10-30 16:13:43 -05:00
Stuart Parmenter
a02648cc99 bug 451193. link xulrunner-stub with jemalloc on linux. r=bsmedberg 2008-08-26 15:25:05 -07:00
Jason Evans
3ef7e52a36 Bug 446096: Integrate upstream jemalloc optimizations, r=pavlov
Enhance arena_chunk_map_t to directly support run coalescing, and use
the chunk map instead of red-black trees where possible.  Remove the
red-black trees and node objects that are obsoleted by this change.  The
net result is a ~1-2% memory savings, and a substantial allocation speed
improvement.

Add a radix tree to optimize isalloc_validate().
2008-07-25 14:53:20 -07:00