< prev index next >

src/hotspot/share/memory/allocation.inline.hpp

Print this page

        

@@ -103,11 +103,11 @@
 E* MallocArrayAllocator<E>::allocate(size_t length, MEMFLAGS flags) {
   return (E*)AllocateHeap(size_for(length), flags);
 }
 
 template<class E>
-void MallocArrayAllocator<E>::free(E* addr, size_t /*length*/) {
+void MallocArrayAllocator<E>::free(E* addr) {
   FreeHeap(addr);
 }
 
 template <class E>
 bool ArrayAllocator<E>::should_use_malloc(size_t length) {

@@ -150,11 +150,11 @@
   return new_addr;
 }
 
 template<class E>
 void ArrayAllocator<E>::free_malloc(E* addr, size_t length) {
-  MallocArrayAllocator<E>::free(addr, length);
+  MallocArrayAllocator<E>::free(addr);
 }
 
 template<class E>
 void ArrayAllocator<E>::free_mmap(E* addr, size_t length) {
   MmapArrayAllocator<E>::free(addr, length);
< prev index next >