Bug 1028684 - Fix the signature of _msize in jemalloc.c; r=glandium
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 24 Jun 2014 07:20:22 -0700
changeset 190546 5ab82e6a9bc40c2baf2b933e1c72f89b35f3579b
parent 190545 a2f87c54b7c87497738317bdc4ac1cda5f9bb5b5
child 190547 b53f3f98de0292beb379776c368e3d9cb0b202b9
push idunknown
push userunknown
push dateunknown
reviewersglandium
bugs1028684
milestone33.0a1
Bug 1028684 - Fix the signature of _msize in jemalloc.c; r=glandium This function accepts a void* argument, not a const void*.
memory/mozjemalloc/jemalloc.c
--- a/memory/mozjemalloc/jemalloc.c
+++ b/memory/mozjemalloc/jemalloc.c
@@ -6848,17 +6848,17 @@ void*
 {
 	if (isalloc(ptr) >= newsize)
 		return ptr;
 
 	return NULL;
 }
 
 size_t
-_msize(const void *ptr)
+_msize(void *ptr)
 {
 
 	return malloc_usable_size_impl(ptr);
 }
 #endif
 
 MOZ_JEMALLOC_API void
 jemalloc_free_dirty_pages_impl(void)