116 void StubRoutines::initialize1() { |
116 void StubRoutines::initialize1() { |
117 if (_code1 == NULL) { |
117 if (_code1 == NULL) { |
118 ResourceMark rm; |
118 ResourceMark rm; |
119 TraceTime timer("StubRoutines generation 1", TraceStartupTime); |
119 TraceTime timer("StubRoutines generation 1", TraceStartupTime); |
120 _code1 = BufferBlob::create("StubRoutines (1)", code_size1); |
120 _code1 = BufferBlob::create("StubRoutines (1)", code_size1); |
121 if( _code1 == NULL) vm_exit_out_of_memory1(code_size1, "CodeCache: no room for %s", "StubRoutines (1)"); |
121 if (_code1 == NULL) { |
|
122 vm_exit_out_of_memory(code_size1, |
|
123 "CodeCache: no room for StubRoutines (1)"); |
|
124 } |
122 CodeBuffer buffer(_code1->instructions_begin(), _code1->instructions_size()); |
125 CodeBuffer buffer(_code1->instructions_begin(), _code1->instructions_size()); |
123 StubGenerator_generate(&buffer, false); |
126 StubGenerator_generate(&buffer, false); |
124 } |
127 } |
125 } |
128 } |
126 |
129 |
162 void StubRoutines::initialize2() { |
165 void StubRoutines::initialize2() { |
163 if (_code2 == NULL) { |
166 if (_code2 == NULL) { |
164 ResourceMark rm; |
167 ResourceMark rm; |
165 TraceTime timer("StubRoutines generation 2", TraceStartupTime); |
168 TraceTime timer("StubRoutines generation 2", TraceStartupTime); |
166 _code2 = BufferBlob::create("StubRoutines (2)", code_size2); |
169 _code2 = BufferBlob::create("StubRoutines (2)", code_size2); |
167 if( _code2 == NULL) vm_exit_out_of_memory1(code_size2, "CodeCache: no room for %s", "StubRoutines (2)"); |
170 if (_code2 == NULL) { |
|
171 vm_exit_out_of_memory(code_size2, |
|
172 "CodeCache: no room for StubRoutines (2)"); |
|
173 } |
168 CodeBuffer buffer(_code2->instructions_begin(), _code2->instructions_size()); |
174 CodeBuffer buffer(_code2->instructions_begin(), _code2->instructions_size()); |
169 StubGenerator_generate(&buffer, true); |
175 StubGenerator_generate(&buffer, true); |
170 } |
176 } |
171 |
177 |
172 #ifdef ASSERT |
178 #ifdef ASSERT |