comparison src/share/vm/code/stubs.cpp @ 1490:f03d0a26bf83

6888954: argument formatting for assert() and friends Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
author jcoomes
date Thu, 22 Apr 2010 13:23:15 -0700
parents a61af66fc99e
children c18cbe5936b8
comparison
equal deleted inserted replaced
1489:cff162798819 1490:f03d0a26bf83
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;