Path: blob/master/src/hotspot/cpu/arm/c2_globals_arm.hpp
40930 views
/*1* Copyright (c) 2008, 2019, 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_ARM_C2_GLOBALS_ARM_HPP25#define CPU_ARM_C2_GLOBALS_ARM_HPP2627#include "utilities/globalDefinitions.hpp"28#include "utilities/macros.hpp"2930//31// Sets the default values for platform dependent flags used by the server compiler.32// (see c2_globals.hpp). Alpha-sorted.3334define_pd_global(bool, BackgroundCompilation, true);35define_pd_global(bool, CICompileOSR, true);36define_pd_global(bool, InlineIntrinsics, false);37define_pd_global(bool, PreferInterpreterNativeStubs, false);38define_pd_global(bool, ProfileTraps, true);39define_pd_global(bool, UseOnStackReplacement, true);40define_pd_global(bool, ProfileInterpreter, true);41define_pd_global(bool, TieredCompilation, false);42define_pd_global(intx, CompileThreshold, 10000);4344define_pd_global(intx, OnStackReplacePercentage, 140);45define_pd_global(intx, ConditionalMoveLimit, 4);46// C2 gets to use all the float/double registers47define_pd_global(intx, FLOATPRESSURE, 30);48define_pd_global(intx, FreqInlineSize, 175);49define_pd_global(intx, INTPRESSURE, 12);50define_pd_global(intx, InteriorEntryAlignment, 16); // = CodeEntryAlignment51define_pd_global(size_t, NewSizeThreadIncrease, ScaleForWordSize(4*K));52// The default setting 16/16 seems to work best.53// (For _228_jack 16/16 is 2% better than 4/4, 16/4, 32/32, 32/16, or 16/32.)54//define_pd_global(intx, OptoLoopAlignment, 16); // = 4*wordSize55define_pd_global(intx, RegisterCostAreaRatio, 16000);56define_pd_global(intx, LoopUnrollLimit, 60); // Design center runs on 1.3.157define_pd_global(intx, LoopPercentProfileLimit, 10);58define_pd_global(intx, MinJumpTableSize, 16);5960// Peephole and CISC spilling both break the graph, and so makes the61// scheduler sick.62define_pd_global(bool, OptoPeephole, false);63define_pd_global(bool, UseCISCSpill, false);64define_pd_global(bool, OptoBundling, false);65define_pd_global(bool, OptoScheduling, true);66define_pd_global(bool, OptoRegScheduling, false);67define_pd_global(bool, SuperWordLoopUnrollAnalysis, false);68define_pd_global(bool, IdealizeClearArrayNode, true);6970#ifdef _LP6471// We need to make sure that all generated code is within72// 2 gigs of the libjvm.so runtime routines so we can use73// the faster "call" instruction rather than the expensive74// sequence of instructions to load a 64 bit pointer.75//76// InitialCodeCacheSize derived from specjbb2000 run.77define_pd_global(size_t, InitialCodeCacheSize, 2048*K); // Integral multiple of CodeCacheExpansionSize78define_pd_global(size_t, ReservedCodeCacheSize, 48*M);79define_pd_global(size_t, NonProfiledCodeHeapSize, 21*M);80define_pd_global(size_t, ProfiledCodeHeapSize, 22*M);81define_pd_global(size_t, NonNMethodCodeHeapSize, 5*M );82define_pd_global(size_t, CodeCacheExpansionSize, 64*K);8384// Ergonomics related flags85define_pd_global(uint64_t, MaxRAM, 128ULL*G);86#else87// InitialCodeCacheSize derived from specjbb2000 run.88define_pd_global(size_t, InitialCodeCacheSize, 1536*K); // Integral multiple of CodeCacheExpansionSize89define_pd_global(size_t, ReservedCodeCacheSize, 32*M);90define_pd_global(size_t, NonProfiledCodeHeapSize, 13*M);91define_pd_global(size_t, ProfiledCodeHeapSize, 14*M);92define_pd_global(size_t, NonNMethodCodeHeapSize, 5*M );93define_pd_global(size_t, CodeCacheExpansionSize, 32*K);94// Ergonomics related flags95define_pd_global(uint64_t, MaxRAM, 4ULL*G);96#endif97define_pd_global(uintx, CodeCacheMinBlockLength, 6);98define_pd_global(size_t, CodeCacheMinimumUseSpace, 400*K);99100define_pd_global(bool, TrapBasedRangeChecks, false); // Not needed101102// Ergonomics related flags103define_pd_global(bool, NeverActAsServerClassMachine, false);104105#endif // CPU_ARM_C2_GLOBALS_ARM_HPP106107108