< prev index next >

src/share/vm/memory/allocation.hpp

Print this page
rev 10388 : imported patch fixAA

@@ -724,13 +724,11 @@
 // is set so that we always use malloc except for Solaris where we set the
 // limit to get mapped memory.
 template <class E, MEMFLAGS F>
 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);
 
   static E* allocate_malloc(size_t length);
< prev index next >