src/share/vm/memory/allocation.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/memory/allocation.cpp	Mon Apr 29 18:21:52 2013
--- new/src/share/vm/memory/allocation.cpp	Mon Apr 29 18:21:50 2013

*** 257,267 **** --- 257,267 ---- _num_used++; p = get_first(); } if (p == NULL) p = os::malloc(bytes, mtChunk, CURRENT_PC); if (p == NULL) ! vm_exit_out_of_memory(bytes, OOM_MALLOC_ERROR, "ChunkPool::allocate"); return p; } // Return a chunk to the pool
*** 369,379 **** --- 369,379 ---- case Chunk::medium_size: return ChunkPool::medium_pool()->allocate(bytes); case Chunk::init_size: return ChunkPool::small_pool()->allocate(bytes); default: { void *p = os::malloc(bytes, mtChunk, CALLER_PC); if (p == NULL) ! vm_exit_out_of_memory(bytes, OOM_MALLOC_ERROR, "Chunk::new"); return p; } } }
*** 529,539 **** --- 529,539 ---- } return sum; // Return total consumed space. } void Arena::signal_out_of_memory(size_t sz, const char* whence) const { ! vm_exit_out_of_memory(sz, OOM_MALLOC_ERROR, whence); } // Grow a new Chunk void* Arena::grow(size_t x, AllocFailType alloc_failmode) { // Get minimal required size. Either real big, or even bigger for giant objs

src/share/vm/memory/allocation.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File