Bug 1401116 - Remove jemalloc symbols from mozglue.def.in. r?njn draft
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 19 Sep 2017 16:06:29 +0900
changeset 666844 da838b77a718db22b337e61c4fe72d5d14381745
parent 666822 3586797af0c9134a1a9b7247fb30d91649478ace
child 666845 696be52e2fe0746e8b20a853cc331f892f58134a
push id80515
push userbmo:mh+mozilla@glandium.org
push dateTue, 19 Sep 2017 08:23:36 +0000
reviewersnjn
bugs1401116
milestone57.0a1
Bug 1401116 - Remove jemalloc symbols from mozglue.def.in. r?njn As long as symbols have the right declspec, the linker is going to export them as expected. The main exception to when we actually need the exported symbol to have a different name, which is the case for the symbols normally exported by the CRT. So keep only those renamed symbols in mozglue.def.in. Keeping the jemalloc symbols in this file kind of implies that we need every new API entry points to appear in there when it's not true. This thus removes an unnecessary moving part when adding new allocator API entry points.
mozglue/build/mozglue.def.in
--- a/mozglue/build/mozglue.def.in
+++ b/mozglue/build/mozglue.def.in
@@ -16,14 +16,9 @@ EXPORTS
   malloc_good_size=je_malloc_good_size
   _aligned_free=je_free
   _aligned_malloc
   strndup=wrap_strndup
   strdup=wrap_strdup
   _strdup=wrap_strdup
   wcsdup=wrap_wcsdup
   _wcsdup=wrap_wcsdup
-  jemalloc_stats
-  jemalloc_purge_freed_pages
-  jemalloc_free_dirty_pages
-  jemalloc_thread_local_arena
-  jemalloc_ptr_info
 #endif