Commit Graph

7 Commits

Author SHA1 Message Date
Mike Hommey
4a28089396 Bug 1417504 - Also wrap Heap{Alloc,ReAlloc,Free} when building without our allocator. r=njn
Bug 1280578 added some wrapping for the Win32 Heap* functions, mainly
for the rust static libraries that use them. Because pointer ownership
might cross the C++/Rust boundary, and because about:memory uses
malloc_usable_size/msize, we need both C++ and Rust to still use the
same heap on builds where our allocator is not enabled.
2017-12-19 14:46:23 +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
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
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
Mike Hommey
23f0ad9861 Bug 1280578 - Wrap HeapAlloc, HeapFree and HeapReAlloc on Windows. r=njn
The Win32 has non-malloc based heap allocation functions. They are not
widely used in the Gecko code base, but there are a few places that do
use them. They could be replaced with uses of malloc/free/realloc or
new/delete, but there is now an entirely separate problem that
requires wrapping those functions: the Rust static libraries are using
those functions to allocate memory.
2016-07-20 14:04:40 +09:00