src/share/vm/c1/c1_Compilation.hpp

changeset 2254
42a10fc37986
parent 2174
f02a8bbe6ed4
child 2314
f95d63e2154a
equal deleted inserted replaced
2207:94d77a279225 2254:42a10fc37986
176 static int desired_max_code_buffer_size() { 176 static int desired_max_code_buffer_size() {
177 #ifndef PPC 177 #ifndef PPC
178 return (int) NMethodSizeLimit; // default 256K or 512K 178 return (int) NMethodSizeLimit; // default 256K or 512K
179 #else 179 #else
180 // conditional branches on PPC are restricted to 16 bit signed 180 // conditional branches on PPC are restricted to 16 bit signed
181 return MAX2((unsigned int)NMethodSizeLimit,32*K); 181 return MIN2((unsigned int)NMethodSizeLimit,32*K);
182 #endif 182 #endif
183 } 183 }
184 static int desired_max_constant_size() { 184 static int desired_max_constant_size() {
185 #ifndef PPC 185 return desired_max_code_buffer_size() / 10;
186 return (int) NMethodSizeLimit / 10; // about 25K
187 #else
188 return (MAX2((unsigned int)NMethodSizeLimit, 32*K)) / 10;
189 #endif
190 } 186 }
191 187
192 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate); 188 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate);
193 189
194 // timers 190 // timers

mercurial