diff --git a/src/hotspot/share/memory/allocation.hpp b/src/hotspot/share/memory/allocation.hpp index 9d989ea3bbf..3c2eecd11d5 100644 --- a/src/hotspot/share/memory/allocation.hpp +++ b/src/hotspot/share/memory/allocation.hpp @@ -549,7 +549,7 @@ class MallocArrayAllocator : public AllStatic { static size_t size_for(size_t length); static E* allocate(size_t length, MEMFLAGS flags); - static void free(E* addr, size_t length); + static void free(E* addr); }; #endif // SHARE_VM_MEMORY_ALLOCATION_HPP diff --git a/src/hotspot/share/memory/allocation.inline.hpp b/src/hotspot/share/memory/allocation.inline.hpp index eab548503b5..b4eae3be0b4 100644 --- a/src/hotspot/share/memory/allocation.inline.hpp +++ b/src/hotspot/share/memory/allocation.inline.hpp @@ -105,7 +105,7 @@ E* MallocArrayAllocator::allocate(size_t length, MEMFLAGS flags) { } template -void MallocArrayAllocator::free(E* addr, size_t /*length*/) { +void MallocArrayAllocator::free(E* addr) { FreeHeap(addr); } @@ -152,7 +152,7 @@ E* ArrayAllocator::reallocate(E* old_addr, size_t old_length, size_t new_leng template void ArrayAllocator::free_malloc(E* addr, size_t length) { - MallocArrayAllocator::free(addr, length); + MallocArrayAllocator::free(addr); } template