equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
190 void bailout(const char* msg); |
190 void bailout(const char* msg); |
191 bool bailed_out() const { return _bailout_msg != NULL; } |
191 bool bailed_out() const { return _bailout_msg != NULL; } |
192 const char* bailout_msg() const { return _bailout_msg; } |
192 const char* bailout_msg() const { return _bailout_msg; } |
193 |
193 |
194 static int desired_max_code_buffer_size() { |
194 static int desired_max_code_buffer_size() { |
195 #ifndef PPC |
195 #ifndef PPC32 |
196 return (int) NMethodSizeLimit; // default 256K or 512K |
196 return (int) NMethodSizeLimit; // default 256K or 512K |
197 #else |
197 #else |
198 // conditional branches on PPC are restricted to 16 bit signed |
198 // conditional branches on PPC are restricted to 16 bit signed |
199 return MIN2((unsigned int)NMethodSizeLimit,32*K); |
199 return MIN2((unsigned int)NMethodSizeLimit,32*K); |
200 #endif |
200 #endif |