Skip to content

Commit

Permalink
Bug 1172632 - Don't guess malloc_usable_size type of argument based o…
Browse files Browse the repository at this point in the history
…n ANDROID_VERSION in mozjemalloc, but use the result of the configure test instead. r=njn
  • Loading branch information
glandium committed Jun 10, 2015
1 parent 54bccdc commit f61d5cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions memory/mozjemalloc/jemalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6514,13 +6514,8 @@ malloc_good_size_impl(size_t size)
}


#if defined(MOZ_MEMORY_ANDROID) && (ANDROID_VERSION < 19)
MOZ_MEMORY_API size_t
malloc_usable_size_impl(void *ptr)
#else
MOZ_MEMORY_API size_t
malloc_usable_size_impl(const void *ptr)
#endif
malloc_usable_size_impl(MALLOC_USABLE_SIZE_CONST_PTR void *ptr)
{
DARWIN_ONLY(return (szone->size)(szone, ptr));

Expand Down

0 comments on commit f61d5cb

Please sign in to comment.