Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
10160:ed5a590835a4 | 10161:746b070f5022 |
---|---|
65 StubQueue::StubQueue(StubInterface* stub_interface, int buffer_size, | 65 StubQueue::StubQueue(StubInterface* stub_interface, int buffer_size, |
66 Mutex* lock, const char* name) : _mutex(lock) { | 66 Mutex* lock, const char* name) : _mutex(lock) { |
67 intptr_t size = round_to(buffer_size, 2*BytesPerWord); | 67 intptr_t size = round_to(buffer_size, 2*BytesPerWord); |
68 BufferBlob* blob = BufferBlob::create(name, size); | 68 BufferBlob* blob = BufferBlob::create(name, size); |
69 if( blob == NULL) { | 69 if( blob == NULL) { |
70 vm_exit_out_of_memory(size, err_msg("CodeCache: no room for %s", name)); | 70 vm_exit_out_of_memory(size, OOM_MALLOC_ERROR, err_msg("CodeCache: no room for %s", name)); |
71 } | 71 } |
72 _stub_interface = stub_interface; | 72 _stub_interface = stub_interface; |
73 _buffer_size = blob->content_size(); | 73 _buffer_size = blob->content_size(); |
74 _buffer_limit = blob->content_size(); | 74 _buffer_limit = blob->content_size(); |
75 _stub_buffer = blob->content_begin(); | 75 _stub_buffer = blob->content_begin(); |