1 /* |
1 /* |
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2018, 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. |
82 static { |
82 static { |
83 if (TIERED_COMPILATION) { |
83 if (TIERED_COMPILATION) { |
84 BACKEDGE_THRESHOLD = THRESHOLD = 150000; |
84 BACKEDGE_THRESHOLD = THRESHOLD = 150000; |
85 } else { |
85 } else { |
86 THRESHOLD = COMPILE_THRESHOLD; |
86 THRESHOLD = COMPILE_THRESHOLD; |
87 BACKEDGE_THRESHOLD = COMPILE_THRESHOLD * Long.parseLong(getVMOption( |
87 BACKEDGE_THRESHOLD = Math.max(10000, COMPILE_THRESHOLD * |
88 "OnStackReplacePercentage")); |
88 Long.parseLong(getVMOption("OnStackReplacePercentage"))); |
89 } |
89 } |
90 } |
90 } |
91 |
91 |
92 /** |
92 /** |
93 * Returns value of VM option. |
93 * Returns value of VM option. |