Path: blob/master/src/hotspot/cpu/x86/c2_globals_x86.hpp
41144 views
/*1* Copyright (c) 2000, 2021, 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_C2_GLOBALS_X86_HPP25#define CPU_X86_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, CICompileOSR, true);34define_pd_global(bool, InlineIntrinsics, true);35define_pd_global(bool, PreferInterpreterNativeStubs, false);36define_pd_global(bool, ProfileTraps, true);37define_pd_global(bool, UseOnStackReplacement, true);38define_pd_global(bool, ProfileInterpreter, true);39define_pd_global(bool, TieredCompilation, COMPILER1_PRESENT(true) NOT_COMPILER1(false));40define_pd_global(intx, CompileThreshold, 10000);4142define_pd_global(intx, OnStackReplacePercentage, 140);43define_pd_global(intx, ConditionalMoveLimit, 3);44define_pd_global(intx, FreqInlineSize, 325);45define_pd_global(intx, MinJumpTableSize, 10);46define_pd_global(intx, LoopPercentProfileLimit, 30);47#ifdef AMD6448define_pd_global(intx, INTPRESSURE, 13);49define_pd_global(intx, FLOATPRESSURE, 14);50define_pd_global(intx, InteriorEntryAlignment, 16);51define_pd_global(size_t, NewSizeThreadIncrease, ScaleForWordSize(4*K));52define_pd_global(intx, LoopUnrollLimit, 60);53// InitialCodeCacheSize derived from specjbb2000 run.54define_pd_global(uintx, InitialCodeCacheSize, 2496*K); // Integral multiple of CodeCacheExpansionSize55define_pd_global(uintx, CodeCacheExpansionSize, 64*K);5657// Ergonomics related flags58define_pd_global(uint64_t, MaxRAM, 128ULL*G);59#else60define_pd_global(intx, INTPRESSURE, 6);61define_pd_global(intx, FLOATPRESSURE, 6);62define_pd_global(intx, InteriorEntryAlignment, 4);63define_pd_global(size_t, NewSizeThreadIncrease, 4*K);64define_pd_global(intx, LoopUnrollLimit, 50); // Design center runs on 1.3.165// InitialCodeCacheSize derived from specjbb2000 run.66define_pd_global(uintx, InitialCodeCacheSize, 2304*K); // Integral multiple of CodeCacheExpansionSize67define_pd_global(uintx, CodeCacheExpansionSize, 32*K);6869// Ergonomics related flags70define_pd_global(uint64_t, MaxRAM, 4ULL*G);71#endif // AMD6472define_pd_global(intx, RegisterCostAreaRatio, 16000);7374// Peephole and CISC spilling both break the graph, and so makes the75// scheduler sick.76define_pd_global(bool, OptoPeephole, true);77define_pd_global(bool, UseCISCSpill, true);78define_pd_global(bool, OptoScheduling, false);79define_pd_global(bool, OptoBundling, false);80define_pd_global(bool, OptoRegScheduling, true);81define_pd_global(bool, SuperWordLoopUnrollAnalysis, true);82define_pd_global(bool, IdealizeClearArrayNode, true);8384define_pd_global(uintx, ReservedCodeCacheSize, 48*M);85define_pd_global(uintx, NonProfiledCodeHeapSize, 21*M);86define_pd_global(uintx, ProfiledCodeHeapSize, 22*M);87define_pd_global(uintx, NonNMethodCodeHeapSize, 5*M );88define_pd_global(uintx, CodeCacheMinBlockLength, 6);89define_pd_global(uintx, CodeCacheMinimumUseSpace, 400*K);9091define_pd_global(bool, TrapBasedRangeChecks, false); // Not needed on x86.9293// Ergonomics related flags94define_pd_global(bool, NeverActAsServerClassMachine, false);9596#endif // CPU_X86_C2_GLOBALS_X86_HPP979899