Sylvestre Ledru
f7691d9032
Bug 2023419 - Remove Emacs/Vim modelines from memory/ r=emilio
...
replaced by .editorconfig
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D287854
2026-03-17 12:05:51 +00:00
serge-sans-paille
5d29082a53
Bug 1997162 - Remove unused mfbt inclusion in memory/** r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D270573
2025-10-29 19:09:24 +00:00
Mike Hommey
8098c94a18
Bug 1829050 - Enable STL wrapping (and thus infallible new) for wasm-sandboxed code. r=firefox-build-system-reviewers,shravanrn,andi
...
Differential Revision: https://phabricator.services.mozilla.com/D175981
2023-05-08 21:10:19 +00:00
Noemi Erli
f3f68808fe
Backed out changeset e06349a5b0f2 (bug 1829050) for causing build bustages in rlbox_wasm2c_sandbox.hpp
2023-05-03 08:16:13 +03:00
Mike Hommey
c089fcdd9e
Bug 1829050 - Enable STL wrapping (and thus infallible new) for wasm-sandboxed code. r=firefox-build-system-reviewers,shravanrn,andi
...
Differential Revision: https://phabricator.services.mozilla.com/D175981
2023-05-03 04:05:07 +00:00
Norisz Fay
0ce684308b
Backed out changeset cddc0b331d97 (bug 1829050) for causing bustages on CheckedInt.h CLOSED TREE
2023-05-03 04:31:34 +03:00
Mike Hommey
c82f15a24a
Bug 1829050 - Enable STL wrapping (and thus infallible new) for wasm-sandboxed code. r=firefox-build-system-reviewers,shravanrn,andi
...
Differential Revision: https://phabricator.services.mozilla.com/D175981
2023-05-03 00:56:33 +00:00
Mike Hommey
7a770ed018
Bug 1553363 - Generalize the *_impl goop for allocation functions in mozglue. r=froydnj
...
The current situation is suboptimal, where we have the same goop
repeated in multiple files, and where things kinda sorta work out fine
thanks to the linker for files that would have been forbidden, except
when the linker doesn't do its job, which apparently happen on
mingwclang builds.
This change only really covers C++ code using operator new/delete, and
not things that would be using malloc/free, because it's easier.
malloc/free is left for a followup.
Differential Revision: https://phabricator.services.mozilla.com/D32119
2019-05-29 22:49:42 +00:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Tooru Fujisawa
5ef6d9cc06
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Benjamin Bouvier
5e1b39e9bd
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Nicholas Nethercote
65c1741f3a
Bug 1486690 - Rename nsMemory::Clone() and remove unnecessary checks after it. r=glandium
...
The 'x' in the new name makes it clearer that it's infallible.
2018-08-28 15:59:19 +10:00
Mike Hommey
f70dd7f723
Bug 1424114 - Remove the string.h/cstring include in mozalloc.h. r=njn
...
While here, change the string.h include to cstring in mozalloc.cpp.
2017-12-08 11:47:15 +09:00
Mike Hommey
0d4db73586
Bug 1423461 - Report the right size to the OOM handler for moz_xcalloc. r=njn
2017-12-06 16:10:30 +09:00
Mike Hommey
c2ef8f01c0
Bug 1423461 - Use mozilla/Likely.h in mozalloc.cpp. r=njn
...
Back when mozalloc.cpp was written, mozilla/Likely.h didn't exist.
2017-12-06 16:05:08 +09:00
Mike Hommey
cefc0cb9e6
Bug 1423114 - Remove moz_xposix_memalign and moz_xvalloc. r=njn
...
They are both infallible wrappers of posix_memalign and valloc.
There is also moz_xmemalign, which wraps memalign, which is mostly
always available as of bug 1402647.
None of them are actually used, but it's still desirable to at least
have one infallible variant, so keep moz_xmemalign and remove the other
two.
While here, we actually make both memalign and moz_xmemalign always
available.
2017-12-05 17:34:19 +09:00
Mike Hommey
b1d47d44f9
Bug 1423094 - Remove USE_STATIC_LIBS=True-related code in mozalloc. r=gps
2017-12-05 16:30:21 +09:00
Narcis Beleuzu
f7f7d94a91
Backed out changeset 8a4050c7e0fd (bug 1423114) for bustages on memory/mozalloc/mozalloc.cpp r=backout on a CLOSED TREE
2017-12-06 00:27:11 +02:00
Mike Hommey
45528a9e9e
Bug 1423114 - Remove moz_xposix_memalign and moz_xvalloc. r=njn
...
They are both infallible wrappers of posix_memalign and valloc.
There is also moz_xmemalign, which wraps memalign, which is always
available as of bug 1402647.
None of them are actually used, but it's still desirable to at least
have one infallible variant, so keep moz_xmemalign and remove the other
two.
While here, we actually make moz_xmemalign always available, since
memalign is always available.
2017-12-05 17:34:19 +09:00
Mike Hommey
4017e096bf
Bug 1423107 - Remove moz_posix_memalign. r=njn
2017-12-05 16:52:34 +09:00
Nicholas Nethercote
92629c5b64
Bug 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium.
2017-09-01 11:52:23 +10:00
Sebastian Hengst
8bc436fe88
Backed out changeset f232b5b1a0c7 (bug 1389305) for frequently failing GTest Jemalloc.PtrInfo on Linux opt. r=backout
2017-08-31 13:52:48 +02:00
Nicholas Nethercote
5decd5e753
Bug 1389305 - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium.
...
jemalloc_ptr_info() gives info about any pointer, such as whether it's within a
live or free allocation, and if so, info about that allocation. It's useful for
debugging.
moz_malloc_enclosing_size_of() uses jemalloc_ptr_info() to measure the size of
an allocation from an interior pointer. It's useful for memory reporting,
especially for Rust code.
2017-08-24 19:37:27 +10:00
Mike Hommey
16c7c0f06b
Bug 1365194 - Make extern "C" part of MOZ_MEMORY_API and MOZ_JEMALLOC_API. r=njn
...
This avoids many additions of `extern "C"` in C++ code and will avoid
having to do the same to mozjemalloc once built as C++.
2017-05-16 18:46:02 +09:00
Carsten "Tomcat" Book
1ff1e94ded
Backed out changeset b56224bf370d (bug 1365194)
2017-05-17 11:43:26 +02:00
Mike Hommey
4578277dba
Bug 1365194 - Make extern "C" part of MOZ_MEMORY_API and MOZ_JEMALLOC_API. r=njn
...
This avoids many additions of `extern "C"` in C++ code and will avoid
having to do the same to mozjemalloc once built as C++.
2017-05-16 18:46:02 +09:00
Emanuel Hoogeveen
363f9560d9
Bug 1294732 - Back out all of bug 1271165 as it has served its purpose. r=glandium
2016-08-23 08:45:00 -04:00
Emanuel Hoogeveen
fb486d1019
Bug 1271165 - Part 6: Change the new functions to MFBT_API to export them on OSX. r=jandem
2016-08-16 07:12:00 -04:00
Emanuel Hoogeveen
97635674b1
Bug 1271165 - Part 2: Hook the new functions up and provide dummy implementations where needed. r=ehoogeveen
2016-08-12 07:37:00 -04:00
Ted Mielczarek
199ff4604e
bug 1171122 - Swap some XP_MACOSX for XP_DARWIN in mozalloc. r=glandium
2015-03-27 22:53:02 -04:00
Mike Hommey
f27efae645
Bug 1138293 - Remove moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
We need to use _impl variants within mozalloc.h when they are defined because
of how mozglue.dll is linked on Windows, where using malloc/free would use
the symbols from the MSVCRT instead of ours.
2015-03-31 12:32:49 +09:00
Mike Hommey
118a0bae88
Bug 1142434 - Remove moz_memalign/moz_valloc, nothing uses them. r=njn
2015-03-31 12:26:45 +09:00
Mike Hommey
2367cde41a
Bug 1142434 - Remove moz_strdup/moz_strndup, nothing uses them. r=njn
2015-03-31 12:26:45 +09:00
Mike Hommey
b8e8edd13f
Followup for bug 868814 - replace non-obvious #if with simpler alternative. rs=njn
2015-03-17 10:04:20 +09:00
Mike Hommey
b08da88474
Bug 1141731 - Avoid problems caused by the inclusion of mozmemory.h in mozalloc.cpp by including mozmemory_wrap.h instead. r=njn
2015-03-11 16:03:53 +09:00
Wes Kocher
0beffc59bb
Backed out changeset ff08cf105def (bug 1141731) for osx bustage
2015-03-10 18:34:28 -07:00
Mike Hommey
76f9f15a17
Bug 1141731 - Avoid problems caused by the inclusion of mozmemory.h in mozalloc.cpp by including mozmemory_wrap.h instead. r=njn
2015-03-11 09:52:04 +09:00
Mike Hommey
d52f1bb3cd
Bug 868814 - Fold mozalloc library into mozglue. r=njn
2015-03-10 10:01:52 +09:00
Chris Peterson
f835b48bc8
Bug 1108934 - Fix -Wunused-const-variable warning-as-error in non-unified build of memory/mozalloc. r=glandium
2014-12-08 21:26:27 -08:00
Ehsan Akhgari
860f2c1f29
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
Daniel Holbert
0837fba225
Bug 926275: Remove mozalloc_macro_wrappers.h and mozalloc_undef_macro_wrappers.h. r=bsmedberg
2013-10-31 19:39:03 -07:00
Trevor Saunders
ed8168c2a4
bug 822717 - remove checks for old gcc r=glandium
2012-12-18 13:22:28 -05:00
Jan Beich
b2c2b96ca4
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
7f0e8873cc
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
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Gian-Carlo Pascutto
2af38a24d4
Bug 743715 - Cannot build Fennec without jemalloc. r=glandium
2012-04-11 14:12:34 +02:00
Mike Hommey
f9e07dcd00
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
Jonathan Kew
ee7783b5af
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
c1dd090b4c
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
2012-01-25 00:52:51 -08:00