1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/cpu/x86/vm/c2_globals_x86.hpp Wed Apr 27 01:25:04 2016 +0800 1.3 @@ -0,0 +1,99 @@ 1.4 +/* 1.5 + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. 1.11 + * 1.12 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.14 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.15 + * version 2 for more details (a copy is included in the LICENSE file that 1.16 + * accompanied this code). 1.17 + * 1.18 + * You should have received a copy of the GNU General Public License version 1.19 + * 2 along with this work; if not, write to the Free Software Foundation, 1.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.21 + * 1.22 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.23 + * or visit www.oracle.com if you need additional information or have any 1.24 + * questions. 1.25 + * 1.26 + */ 1.27 + 1.28 +#ifndef CPU_X86_VM_C2_GLOBALS_X86_HPP 1.29 +#define CPU_X86_VM_C2_GLOBALS_X86_HPP 1.30 + 1.31 +#include "utilities/globalDefinitions.hpp" 1.32 +#include "utilities/macros.hpp" 1.33 + 1.34 +// Sets the default values for platform dependent flags used by the server compiler. 1.35 +// (see c2_globals.hpp). Alpha-sorted. 1.36 +define_pd_global(bool, BackgroundCompilation, true); 1.37 +define_pd_global(bool, UseTLAB, true); 1.38 +define_pd_global(bool, ResizeTLAB, true); 1.39 +define_pd_global(bool, CICompileOSR, true); 1.40 +define_pd_global(bool, InlineIntrinsics, true); 1.41 +define_pd_global(bool, PreferInterpreterNativeStubs, false); 1.42 +define_pd_global(bool, ProfileTraps, true); 1.43 +define_pd_global(bool, UseOnStackReplacement, true); 1.44 +#ifdef CC_INTERP 1.45 +define_pd_global(bool, ProfileInterpreter, false); 1.46 +#else 1.47 +define_pd_global(bool, ProfileInterpreter, true); 1.48 +#endif // CC_INTERP 1.49 +define_pd_global(bool, TieredCompilation, trueInTiered); 1.50 +define_pd_global(intx, CompileThreshold, 10000); 1.51 +define_pd_global(intx, BackEdgeThreshold, 100000); 1.52 + 1.53 +define_pd_global(intx, OnStackReplacePercentage, 140); 1.54 +define_pd_global(intx, ConditionalMoveLimit, 3); 1.55 +define_pd_global(intx, FLOATPRESSURE, 6); 1.56 +define_pd_global(intx, FreqInlineSize, 325); 1.57 +define_pd_global(intx, MinJumpTableSize, 10); 1.58 +#ifdef AMD64 1.59 +define_pd_global(intx, INTPRESSURE, 13); 1.60 +define_pd_global(intx, InteriorEntryAlignment, 16); 1.61 +define_pd_global(intx, NewSizeThreadIncrease, ScaleForWordSize(4*K)); 1.62 +define_pd_global(intx, LoopUnrollLimit, 60); 1.63 +// InitialCodeCacheSize derived from specjbb2000 run. 1.64 +define_pd_global(intx, InitialCodeCacheSize, 2496*K); // Integral multiple of CodeCacheExpansionSize 1.65 +define_pd_global(intx, CodeCacheExpansionSize, 64*K); 1.66 + 1.67 +// Ergonomics related flags 1.68 +define_pd_global(uint64_t,MaxRAM, 128ULL*G); 1.69 +#else 1.70 +define_pd_global(intx, INTPRESSURE, 6); 1.71 +define_pd_global(intx, InteriorEntryAlignment, 4); 1.72 +define_pd_global(intx, NewSizeThreadIncrease, 4*K); 1.73 +define_pd_global(intx, LoopUnrollLimit, 50); // Design center runs on 1.3.1 1.74 +// InitialCodeCacheSize derived from specjbb2000 run. 1.75 +define_pd_global(intx, InitialCodeCacheSize, 2304*K); // Integral multiple of CodeCacheExpansionSize 1.76 +define_pd_global(intx, CodeCacheExpansionSize, 32*K); 1.77 + 1.78 +// Ergonomics related flags 1.79 +define_pd_global(uint64_t,MaxRAM, 4ULL*G); 1.80 +#endif // AMD64 1.81 +define_pd_global(intx, RegisterCostAreaRatio, 16000); 1.82 + 1.83 +// Peephole and CISC spilling both break the graph, and so makes the 1.84 +// scheduler sick. 1.85 +define_pd_global(bool, OptoPeephole, true); 1.86 +define_pd_global(bool, UseCISCSpill, true); 1.87 +define_pd_global(bool, OptoScheduling, false); 1.88 +define_pd_global(bool, OptoBundling, false); 1.89 + 1.90 +define_pd_global(intx, ReservedCodeCacheSize, 48*M); 1.91 +define_pd_global(uintx, CodeCacheMinBlockLength, 4); 1.92 +define_pd_global(uintx, CodeCacheMinimumUseSpace, 400*K); 1.93 + 1.94 +define_pd_global(bool, TrapBasedRangeChecks, false); // Not needed on x86. 1.95 + 1.96 +// Heap related flags 1.97 +define_pd_global(uintx,MetaspaceSize, ScaleForWordSize(16*M)); 1.98 + 1.99 +// Ergonomics related flags 1.100 +define_pd_global(bool, NeverActAsServerClassMachine, false); 1.101 + 1.102 +#endif // CPU_X86_VM_C2_GLOBALS_X86_HPP