hotspot/src/share/vm/code/stubs.cpp
changeset 5403 6b0dd9c75dde
parent 1 489c9b5090e2
child 5547 f4b087cbb361
equal deleted inserted replaced
5402:c51fd0c1d005 5403:6b0dd9c75dde
    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;