pjs/memory/mozalloc
Jeff Muizelaar 146018ea62 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
..
Makefile.in 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
mozalloc.cpp Bug 680373 - Link jemalloc into mozutils instead of mozalloc on Android. r=blassey,r=pbiggar 2011-08-24 12:55:13 +02:00
mozalloc.h Bug 695171. Make our operator new throw std::bad_alloc. r=cjones 2011-10-18 14:19:23 -04:00
mozalloc_abort.cpp 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
mozalloc_abort.h 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
mozalloc_macro_wrappers.h 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
mozalloc_oom.cpp Bug 577011 - [OS/2] make _declspec unconditionally default symbol export r=daveryeo@telus.net a=benjamin 2010-11-09 11:13:03 +01:00
mozalloc_oom.h Bug 550401: Do the __declspec import/export dance in mozalloc to avoid MSVC warnings. r=bsmedberg 2010-04-08 13:05:02 -05:00
mozalloc_undef_macro_wrappers.h 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
msvc_raise_wrappers.cpp 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
msvc_raise_wrappers.h 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
msvc_throw_wrapper.cpp Bug 577011 there's another typo a=bustage 2010-11-09 19:29:09 +08:00
msvc_throw_wrapper.h Bug 560723: Interpose non-throwing mozilla variants of VC10 STL functions that throw exceptions. r=ehsan sr=bsmedberg 2010-04-28 19:38:41 -05:00
throw_gcc.h Followup to bug 557060: Fix missing #include <string.h>. r=cjones 2010-04-21 23:41:41 -05:00
throw_msvc.h Bug 560723: Interpose non-throwing mozilla variants of VC10 STL functions that throw exceptions. r=ehsan sr=bsmedberg 2010-04-28 19:38:41 -05:00