Mercurial > hg > graal-jvmci-8
diff src/share/vm/code/vtableStubs.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 | da91efe96a93 |
children | 9758d9f36299 |
line wrap: on
line diff
--- a/src/share/vm/code/vtableStubs.cpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/share/vm/code/vtableStubs.cpp Tue Apr 30 11:56:52 2013 -0700 @@ -60,7 +60,7 @@ const int bytes = chunk_factor * real_size + pd_code_alignment(); BufferBlob* blob = BufferBlob::create("vtable chunks", bytes); if (blob == NULL) { - vm_exit_out_of_memory(bytes, "CodeCache: no room for vtable chunks"); + vm_exit_out_of_memory(bytes, OOM_MALLOC_ERROR, "CodeCache: no room for vtable chunks"); } _chunk = blob->content_begin(); _chunk_end = _chunk + bytes;