# HG changeset patch # User stefank # Date 1521718471 -3600 # Node ID 66c32f2a7f10e0a4670b9fafd9a88cbe5644d53f # Parent bde392011cd8b25bea671bd31e0e81c33ec38057 8200111: MallocArrayAllocator::free should not take a length parameter Reviewed-by: gtriantafill, coleenp, tschatzl diff -r bde392011cd8 -r 66c32f2a7f10 src/hotspot/share/memory/allocation.hpp --- a/src/hotspot/share/memory/allocation.hpp Thu Mar 22 20:21:19 2018 -0700 +++ b/src/hotspot/share/memory/allocation.hpp Thu Mar 22 12:34:31 2018 +0100 @@ -549,7 +549,7 @@ 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 -r bde392011cd8 -r 66c32f2a7f10 src/hotspot/share/memory/allocation.inline.hpp --- a/src/hotspot/share/memory/allocation.inline.hpp Thu Mar 22 20:21:19 2018 -0700 +++ b/src/hotspot/share/memory/allocation.inline.hpp Thu Mar 22 12:34:31 2018 +0100 @@ -105,7 +105,7 @@ } template -void MallocArrayAllocator::free(E* addr, size_t /*length*/) { +void MallocArrayAllocator::free(E* addr) { FreeHeap(addr); } @@ -152,7 +152,7 @@ template void ArrayAllocator::free_malloc(E* addr, size_t length) { - MallocArrayAllocator::free(addr, length); + MallocArrayAllocator::free(addr); } template