equal
deleted
inserted
replaced
166 void bailout(const char* msg); |
166 void bailout(const char* msg); |
167 bool bailed_out() const { return _bailout_msg != NULL; } |
167 bool bailed_out() const { return _bailout_msg != NULL; } |
168 const char* bailout_msg() const { return _bailout_msg; } |
168 const char* bailout_msg() const { return _bailout_msg; } |
169 |
169 |
170 static int desired_max_code_buffer_size() { |
170 static int desired_max_code_buffer_size() { |
|
171 #ifndef PPC |
171 return (int) NMethodSizeLimit; // default 256K or 512K |
172 return (int) NMethodSizeLimit; // default 256K or 512K |
|
173 #else |
|
174 // conditional branches on PPC are restricted to 16 bit signed |
|
175 return MAX2((unsigned int)NMethodSizeLimit,32*K); |
|
176 #endif |
172 } |
177 } |
173 static int desired_max_constant_size() { |
178 static int desired_max_constant_size() { |
|
179 #ifndef PPC |
174 return (int) NMethodSizeLimit / 10; // about 25K |
180 return (int) NMethodSizeLimit / 10; // about 25K |
|
181 #else |
|
182 return (MAX2((unsigned int)NMethodSizeLimit, 32*K)) / 10; |
|
183 #endif |
175 } |
184 } |
176 |
185 |
177 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate); |
186 static void setup_code_buffer(CodeBuffer* cb, int call_stub_estimate); |
178 |
187 |
179 // timers |
188 // timers |