Mercurial > hg > truffle
diff src/share/vm/prims/methodHandles.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 | ce6d7e43501c |
children | 39ead0411f07 f0bc60565ba8 |
line wrap: on
line diff
--- a/src/share/vm/prims/methodHandles.cpp Tue Apr 30 09:17:06 2013 -0400 +++ b/src/share/vm/prims/methodHandles.cpp Tue Apr 30 11:56:52 2013 -0700 @@ -67,7 +67,8 @@ TraceTime timer("MethodHandles adapters generation", TraceStartupTime); _adapter_code = MethodHandlesAdapterBlob::create(adapter_code_size); if (_adapter_code == NULL) - vm_exit_out_of_memory(adapter_code_size, "CodeCache: no room for MethodHandles adapters"); + vm_exit_out_of_memory(adapter_code_size, OOM_MALLOC_ERROR, + "CodeCache: no room for MethodHandles adapters"); { CodeBuffer code(_adapter_code); MethodHandlesAdapterGenerator g(&code);