--- old/src/share/vm/memory/allocation.hpp 2016-03-09 15:15:27.746395764 +0100 +++ new/src/share/vm/memory/allocation.hpp 2016-03-09 15:15:27.634391976 +0100 @@ -726,9 +726,7 @@ template class ArrayAllocator : public AllStatic { private: - static bool should_use_malloc(size_t length) { - return length * sizeof(E) < ArrayAllocatorMallocLimit; - } + static bool should_use_malloc(size_t length); static size_t size_for_malloc(size_t length); static size_t size_for_mmap(size_t length);