comparison 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
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
58 const int chunk_factor = 32; 58 const int chunk_factor = 32;
59 if (_chunk == NULL || _chunk + real_size > _chunk_end) { 59 if (_chunk == NULL || _chunk + real_size > _chunk_end) {
60 const int bytes = chunk_factor * real_size + pd_code_alignment(); 60 const int bytes = chunk_factor * real_size + pd_code_alignment();
61 BufferBlob* blob = BufferBlob::create("vtable chunks", bytes); 61 BufferBlob* blob = BufferBlob::create("vtable chunks", bytes);
62 if (blob == NULL) { 62 if (blob == NULL) {
63 vm_exit_out_of_memory(bytes, "CodeCache: no room for vtable chunks"); 63 vm_exit_out_of_memory(bytes, OOM_MALLOC_ERROR, "CodeCache: no room for vtable chunks");
64 } 64 }
65 _chunk = blob->content_begin(); 65 _chunk = blob->content_begin();
66 _chunk_end = _chunk + bytes; 66 _chunk_end = _chunk + bytes;
67 Forte::register_stub("vtable stub", _chunk, _chunk_end); 67 Forte::register_stub("vtable stub", _chunk, _chunk_end);
68 // Notify JVMTI about this stub. The event will be recorded by the enclosing 68 // Notify JVMTI about this stub. The event will be recorded by the enclosing