Bug 1368932 - Remove void argument from declarations in malloc_decls.h. r=njn
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 25 May 2017 13:56:40 +0900
changeset 361702 a92caa51ce41bab31559d322c95bd7a38104782e
parent 361701 7bdd66505228718a7c68723e1364c1aa98956bf1
child 361703 aa1bdb69c9e8bad0e1023ff9a0620ee4af65fbec
push id31939
push usercbook@mozilla.com
push dateThu, 01 Jun 2017 11:49:28 +0000
treeherdermozilla-central@d96110d76619 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1368932
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1368932 - Remove void argument from declarations in malloc_decls.h. r=njn This makes no significant difference in practice in the macro expansions, but will help down the line.
memory/build/malloc_decls.h
--- a/memory/build/malloc_decls.h
+++ b/memory/build/malloc_decls.h
@@ -38,34 +38,34 @@ typedef MALLOC_USABLE_SIZE_CONST_PTR voi
 #  ifndef MALLOC_DECL_VOID
 #    define MALLOC_DECL_VOID(func, ...) MALLOC_DECL(func, void, __VA_ARGS__)
 #  endif
 
 #  if MALLOC_FUNCS & MALLOC_FUNCS_INIT
 MALLOC_DECL(init, void, const malloc_table_t *)
 #  endif
 #  if MALLOC_FUNCS & MALLOC_FUNCS_BRIDGE
-MALLOC_DECL(get_bridge, struct ReplaceMallocBridge*, void)
+MALLOC_DECL(get_bridge, struct ReplaceMallocBridge*)
 #  endif
 #  if MALLOC_FUNCS & MALLOC_FUNCS_MALLOC
 MALLOC_DECL(malloc, void *, size_t)
 MALLOC_DECL(posix_memalign, int, void **, size_t, size_t)
 MALLOC_DECL(aligned_alloc, void *, size_t, size_t)
 MALLOC_DECL(calloc, void *, size_t, size_t)
 MALLOC_DECL(realloc, void *, void *, size_t)
 MALLOC_DECL_VOID(free, void *)
 MALLOC_DECL(memalign, void *, size_t, size_t)
 MALLOC_DECL(valloc, void *, size_t)
 MALLOC_DECL(malloc_usable_size, size_t, usable_ptr_t)
 MALLOC_DECL(malloc_good_size, size_t, size_t)
 #  endif
 #  if MALLOC_FUNCS & MALLOC_FUNCS_JEMALLOC
 MALLOC_DECL_VOID(jemalloc_stats, jemalloc_stats_t *)
-MALLOC_DECL_VOID(jemalloc_purge_freed_pages, void)
-MALLOC_DECL_VOID(jemalloc_free_dirty_pages, void)
+MALLOC_DECL_VOID(jemalloc_purge_freed_pages)
+MALLOC_DECL_VOID(jemalloc_free_dirty_pages)
 MALLOC_DECL_VOID(jemalloc_thread_local_arena, jemalloc_bool)
 #  endif
 
 #  undef MALLOC_DECL_VOID
 #endif /* MALLOC_DECL */
 
 #undef MALLOC_DECL
 #undef MALLOC_FUNCS