Mercurial > hg > truffle
diff src/share/vm/code/stubs.cpp @ 10161:746b070f5022
8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap"
Reviewed-by: coleenp, zgu, hseigel
author | ccheung |
---|---|
date | Tue, 30 Apr 2013 11:56:52 -0700 |
parents | a5de0cc2f91c |
children | 836a62f43af9 de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/code/stubs.cpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/share/vm/code/stubs.cpp Tue Apr 30 11:56:52 2013 -0700 @@ -67,7 +67,7 @@ intptr_t size = round_to(buffer_size, 2*BytesPerWord); BufferBlob* blob = BufferBlob::create(name, size); if( blob == NULL) { - vm_exit_out_of_memory(size, err_msg("CodeCache: no room for %s", name)); + vm_exit_out_of_memory(size, OOM_MALLOC_ERROR, err_msg("CodeCache: no room for %s", name)); } _stub_interface = stub_interface; _buffer_size = blob->content_size();