Wed, 15 Apr 2020 11:49:55 +0800
Merge
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. |
aoqi@0 | 3 | * Copyright 2012, 2014 SAP AG. All rights reserved. |
aoqi@0 | 4 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
aoqi@0 | 5 | * |
aoqi@0 | 6 | * This code is free software; you can redistribute it and/or modify it |
aoqi@0 | 7 | * under the terms of the GNU General Public License version 2 only, as |
aoqi@0 | 8 | * published by the Free Software Foundation. |
aoqi@0 | 9 | * |
aoqi@0 | 10 | * This code is distributed in the hope that it will be useful, but WITHOUT |
aoqi@0 | 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
aoqi@0 | 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
aoqi@0 | 13 | * version 2 for more details (a copy is included in the LICENSE file that |
aoqi@0 | 14 | * accompanied this code). |
aoqi@0 | 15 | * |
aoqi@0 | 16 | * You should have received a copy of the GNU General Public License version |
aoqi@0 | 17 | * 2 along with this work; if not, write to the Free Software Foundation, |
aoqi@0 | 18 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
aoqi@0 | 19 | * |
aoqi@0 | 20 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
aoqi@0 | 21 | * or visit www.oracle.com if you need additional information or have any |
aoqi@0 | 22 | * questions. |
aoqi@0 | 23 | * |
aoqi@0 | 24 | */ |
aoqi@0 | 25 | |
aoqi@0 | 26 | #ifndef CPU_PPC_VM_C2_GLOBALS_PPC_HPP |
aoqi@0 | 27 | #define CPU_PPC_VM_C2_GLOBALS_PPC_HPP |
aoqi@0 | 28 | |
aoqi@0 | 29 | #include "utilities/globalDefinitions.hpp" |
aoqi@0 | 30 | #include "utilities/macros.hpp" |
aoqi@0 | 31 | |
aoqi@0 | 32 | // Sets the default values for platform dependent flags used by the server compiler. |
aoqi@0 | 33 | // (see c2_globals.hpp). |
aoqi@0 | 34 | |
aoqi@0 | 35 | define_pd_global(bool, BackgroundCompilation, true); |
aoqi@0 | 36 | define_pd_global(bool, CICompileOSR, true); |
aoqi@0 | 37 | define_pd_global(bool, InlineIntrinsics, true); |
aoqi@0 | 38 | define_pd_global(bool, PreferInterpreterNativeStubs, false); |
aoqi@0 | 39 | define_pd_global(bool, ProfileTraps, true); |
aoqi@0 | 40 | define_pd_global(bool, UseOnStackReplacement, true); |
aoqi@0 | 41 | define_pd_global(bool, ProfileInterpreter, true); |
aoqi@0 | 42 | define_pd_global(bool, TieredCompilation, false); |
aoqi@0 | 43 | define_pd_global(intx, CompileThreshold, 10000); |
aoqi@0 | 44 | define_pd_global(intx, BackEdgeThreshold, 140000); |
aoqi@0 | 45 | |
aoqi@0 | 46 | define_pd_global(intx, OnStackReplacePercentage, 140); |
aoqi@0 | 47 | define_pd_global(intx, ConditionalMoveLimit, 3); |
aoqi@0 | 48 | define_pd_global(intx, FLOATPRESSURE, 28); |
aoqi@0 | 49 | define_pd_global(intx, FreqInlineSize, 175); |
aoqi@0 | 50 | define_pd_global(intx, MinJumpTableSize, 10); |
aoqi@0 | 51 | define_pd_global(intx, INTPRESSURE, 25); |
aoqi@0 | 52 | define_pd_global(intx, InteriorEntryAlignment, 16); |
aoqi@0 | 53 | define_pd_global(intx, NewSizeThreadIncrease, ScaleForWordSize(4*K)); |
aoqi@0 | 54 | define_pd_global(intx, RegisterCostAreaRatio, 16000); |
aoqi@0 | 55 | define_pd_global(bool, UseTLAB, true); |
aoqi@0 | 56 | define_pd_global(bool, ResizeTLAB, true); |
aoqi@0 | 57 | define_pd_global(intx, LoopUnrollLimit, 60); |
aoqi@0 | 58 | |
aoqi@0 | 59 | // Peephole and CISC spilling both break the graph, and so make the |
aoqi@0 | 60 | // scheduler sick. |
aoqi@0 | 61 | define_pd_global(bool, OptoPeephole, false); |
aoqi@0 | 62 | define_pd_global(bool, UseCISCSpill, false); |
aoqi@0 | 63 | define_pd_global(bool, OptoBundling, false); |
aoqi@0 | 64 | // GL: |
aoqi@0 | 65 | // Detected a problem with unscaled compressed oops and |
aoqi@0 | 66 | // narrow_oop_use_complex_address() == false. |
aoqi@0 | 67 | // -Djava.io.tmpdir=./tmp -jar SPECjvm2008.jar -ikv -wt 3 -it 3 |
aoqi@0 | 68 | // -bt 1 --base compiler.sunflow |
aoqi@0 | 69 | // fails in Lower.visitIf->translate->tranlate->translate and |
aoqi@0 | 70 | // throws an unexpected NPE. A load and a store seem to be |
aoqi@0 | 71 | // reordered. Java reads about: |
aoqi@0 | 72 | // loc = x.f |
aoqi@0 | 73 | // x.f = 0 |
aoqi@0 | 74 | // NullCheck loc |
aoqi@0 | 75 | // While assembler reads: |
aoqi@0 | 76 | // x.f = 0 |
aoqi@0 | 77 | // loc = x.f |
aoqi@0 | 78 | // NullCheck loc |
aoqi@0 | 79 | define_pd_global(bool, OptoScheduling, false); |
aoqi@0 | 80 | |
aoqi@0 | 81 | define_pd_global(intx, InitialCodeCacheSize, 2048*K); // Integral multiple of CodeCacheExpansionSize |
aoqi@0 | 82 | define_pd_global(intx, ReservedCodeCacheSize, 256*M); |
aoqi@0 | 83 | define_pd_global(intx, CodeCacheExpansionSize, 64*K); |
aoqi@0 | 84 | |
aoqi@0 | 85 | // Ergonomics related flags |
aoqi@0 | 86 | define_pd_global(uint64_t,MaxRAM, 4ULL*G); |
aoqi@0 | 87 | define_pd_global(uintx, CodeCacheMinBlockLength, 4); |
aoqi@0 | 88 | define_pd_global(uintx, CodeCacheMinimumUseSpace, 400*K); |
aoqi@0 | 89 | |
aoqi@0 | 90 | define_pd_global(bool, TrapBasedRangeChecks, true); |
aoqi@0 | 91 | |
aoqi@0 | 92 | // Heap related flags |
aoqi@0 | 93 | define_pd_global(uintx,MetaspaceSize, ScaleForWordSize(16*M)); |
aoqi@0 | 94 | |
aoqi@0 | 95 | // Ergonomics related flags |
aoqi@0 | 96 | define_pd_global(bool, NeverActAsServerClassMachine, false); |
aoqi@0 | 97 | |
aoqi@0 | 98 | #endif // CPU_PPC_VM_C2_GLOBALS_PPC_HPP |