Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
10160:ed5a590835a4 | 10161:746b070f5022 |
---|---|
65 | 65 |
66 ResourceMark rm; | 66 ResourceMark rm; |
67 TraceTime timer("MethodHandles adapters generation", TraceStartupTime); | 67 TraceTime timer("MethodHandles adapters generation", TraceStartupTime); |
68 _adapter_code = MethodHandlesAdapterBlob::create(adapter_code_size); | 68 _adapter_code = MethodHandlesAdapterBlob::create(adapter_code_size); |
69 if (_adapter_code == NULL) | 69 if (_adapter_code == NULL) |
70 vm_exit_out_of_memory(adapter_code_size, "CodeCache: no room for MethodHandles adapters"); | 70 vm_exit_out_of_memory(adapter_code_size, OOM_MALLOC_ERROR, |
71 "CodeCache: no room for MethodHandles adapters"); | |
71 { | 72 { |
72 CodeBuffer code(_adapter_code); | 73 CodeBuffer code(_adapter_code); |
73 MethodHandlesAdapterGenerator g(&code); | 74 MethodHandlesAdapterGenerator g(&code); |
74 g.generate(); | 75 g.generate(); |
75 code.log_section_sizes("MethodHandlesAdapterBlob"); | 76 code.log_section_sizes("MethodHandlesAdapterBlob"); |