Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/cpu/x86/vm/c2_globals_x86.hpp
32285 views
/*1* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef CPU_X86_VM_C2_GLOBALS_X86_HPP25#define CPU_X86_VM_C2_GLOBALS_X86_HPP2627#include "utilities/globalDefinitions.hpp"28#include "utilities/macros.hpp"2930// Sets the default values for platform dependent flags used by the server compiler.31// (see c2_globals.hpp). Alpha-sorted.32define_pd_global(bool, BackgroundCompilation, true);33define_pd_global(bool, UseTLAB, true);34define_pd_global(bool, ResizeTLAB, true);35define_pd_global(bool, CICompileOSR, true);36define_pd_global(bool, InlineIntrinsics, true);37define_pd_global(bool, PreferInterpreterNativeStubs, false);38define_pd_global(bool, ProfileTraps, true);39define_pd_global(bool, UseOnStackReplacement, true);40#ifdef CC_INTERP41define_pd_global(bool, ProfileInterpreter, false);42#else43define_pd_global(bool, ProfileInterpreter, true);44#endif // CC_INTERP45define_pd_global(bool, TieredCompilation, trueInTiered);46define_pd_global(intx, CompileThreshold, 10000);47define_pd_global(intx, BackEdgeThreshold, 100000);4849define_pd_global(intx, OnStackReplacePercentage, 140);50define_pd_global(intx, ConditionalMoveLimit, 3);51define_pd_global(intx, FLOATPRESSURE, 6);52define_pd_global(intx, FreqInlineSize, 325);53define_pd_global(intx, MinJumpTableSize, 10);54#ifdef AMD6455define_pd_global(intx, INTPRESSURE, 13);56define_pd_global(intx, InteriorEntryAlignment, 16);57define_pd_global(intx, NewSizeThreadIncrease, ScaleForWordSize(4*K));58define_pd_global(intx, LoopUnrollLimit, 60);59// InitialCodeCacheSize derived from specjbb2000 run.60define_pd_global(intx, InitialCodeCacheSize, 2496*K); // Integral multiple of CodeCacheExpansionSize61define_pd_global(intx, CodeCacheExpansionSize, 64*K);6263// Ergonomics related flags64define_pd_global(uint64_t,MaxRAM, 128ULL*G);65#else66define_pd_global(intx, INTPRESSURE, 6);67define_pd_global(intx, InteriorEntryAlignment, 4);68define_pd_global(intx, NewSizeThreadIncrease, 4*K);69define_pd_global(intx, LoopUnrollLimit, 50); // Design center runs on 1.3.170// InitialCodeCacheSize derived from specjbb2000 run.71define_pd_global(intx, InitialCodeCacheSize, 2304*K); // Integral multiple of CodeCacheExpansionSize72define_pd_global(intx, CodeCacheExpansionSize, 32*K);7374// Ergonomics related flags75define_pd_global(uint64_t,MaxRAM, 4ULL*G);76#endif // AMD6477define_pd_global(intx, RegisterCostAreaRatio, 16000);7879// Peephole and CISC spilling both break the graph, and so makes the80// scheduler sick.81define_pd_global(bool, OptoPeephole, true);82define_pd_global(bool, UseCISCSpill, true);83define_pd_global(bool, OptoScheduling, false);84define_pd_global(bool, OptoBundling, false);8586define_pd_global(intx, ReservedCodeCacheSize, 48*M);87define_pd_global(uintx, CodeCacheMinBlockLength, 4);88define_pd_global(uintx, CodeCacheMinimumUseSpace, 400*K);8990define_pd_global(bool, TrapBasedRangeChecks, false); // Not needed on x86.9192// Heap related flags93define_pd_global(uintx,MetaspaceSize, ScaleForWordSize(16*M));9495// Ergonomics related flags96define_pd_global(bool, NeverActAsServerClassMachine, false);9798#endif // CPU_X86_VM_C2_GLOBALS_X86_HPP99100101