1.1 --- a/src/share/vm/runtime/stubRoutines.cpp Fri Aug 27 17:33:49 2010 -0700 1.2 +++ b/src/share/vm/runtime/stubRoutines.cpp Fri Aug 27 17:35:08 2010 -0700 1.3 @@ -128,10 +128,9 @@ 1.4 TraceTime timer("StubRoutines generation 1", TraceStartupTime); 1.5 _code1 = BufferBlob::create("StubRoutines (1)", code_size1); 1.6 if (_code1 == NULL) { 1.7 - vm_exit_out_of_memory(code_size1, 1.8 - "CodeCache: no room for StubRoutines (1)"); 1.9 + vm_exit_out_of_memory(code_size1, "CodeCache: no room for StubRoutines (1)"); 1.10 } 1.11 - CodeBuffer buffer(_code1->instructions_begin(), _code1->instructions_size()); 1.12 + CodeBuffer buffer(_code1); 1.13 StubGenerator_generate(&buffer, false); 1.14 } 1.15 } 1.16 @@ -181,10 +180,9 @@ 1.17 TraceTime timer("StubRoutines generation 2", TraceStartupTime); 1.18 _code2 = BufferBlob::create("StubRoutines (2)", code_size2); 1.19 if (_code2 == NULL) { 1.20 - vm_exit_out_of_memory(code_size2, 1.21 - "CodeCache: no room for StubRoutines (2)"); 1.22 + vm_exit_out_of_memory(code_size2, "CodeCache: no room for StubRoutines (2)"); 1.23 } 1.24 - CodeBuffer buffer(_code2->instructions_begin(), _code2->instructions_size()); 1.25 + CodeBuffer buffer(_code2); 1.26 StubGenerator_generate(&buffer, true); 1.27 } 1.28