equal
deleted
inserted
replaced
60 |
60 |
61 StubQueue::StubQueue(StubInterface* stub_interface, int buffer_size, |
61 StubQueue::StubQueue(StubInterface* stub_interface, int buffer_size, |
62 Mutex* lock, const char* name) : _mutex(lock) { |
62 Mutex* lock, const char* name) : _mutex(lock) { |
63 intptr_t size = round_to(buffer_size, 2*BytesPerWord); |
63 intptr_t size = round_to(buffer_size, 2*BytesPerWord); |
64 BufferBlob* blob = BufferBlob::create(name, size); |
64 BufferBlob* blob = BufferBlob::create(name, size); |
65 if( blob == NULL ) vm_exit_out_of_memory1(size, "CodeCache: no room for %s", name); |
65 if( blob == NULL) { |
|
66 vm_exit_out_of_memory(size, err_msg("CodeCache: no room for %s", name)); |
|
67 } |
66 _stub_interface = stub_interface; |
68 _stub_interface = stub_interface; |
67 _buffer_size = blob->instructions_size(); |
69 _buffer_size = blob->instructions_size(); |
68 _buffer_limit = blob->instructions_size(); |
70 _buffer_limit = blob->instructions_size(); |
69 _stub_buffer = blob->instructions_begin(); |
71 _stub_buffer = blob->instructions_begin(); |
70 _queue_begin = 0; |
72 _queue_begin = 0; |