Path: blob/master/src/hotspot/cpu/s390/globals_s390.hpp
40930 views
/*1* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2016, 2018 SAP SE. All rights reserved.3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4*5* This code is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425#ifndef CPU_S390_GLOBALS_S390_HPP26#define CPU_S390_GLOBALS_S390_HPP2728#include "utilities/globalDefinitions.hpp"29#include "utilities/macros.hpp"3031// Sets the default values for platform dependent flags used by the runtime system.32// (see globals.hpp)3334define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks.35define_pd_global(bool, TrapBasedNullChecks, true);36define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast.3738define_pd_global(uintx, CodeCacheSegmentSize, 256);39// This shall be at least 32 for proper branch target alignment.40// Ideally, this is 256 (cache line size). This keeps code end data41// on separate lines. But we reduced it to 64 since 256 increased42// code size significantly by padding nops between IVC and second UEP.43define_pd_global(intx, CodeEntryAlignment, 64);44define_pd_global(intx, OptoLoopAlignment, 2);45define_pd_global(intx, InlineFrequencyCount, 100);46define_pd_global(intx, InlineSmallCode, 2000);4748#define DEFAULT_STACK_YELLOW_PAGES (2)49#define DEFAULT_STACK_RED_PAGES (1)50// Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the51// stack. To pass stack overflow tests we need 20 shadow pages.52#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+4))53#define DEFAULT_STACK_RESERVED_PAGES (1)5455#define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES56#define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES57#define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES58#define MIN_STACK_RESERVED_PAGES (0)5960define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);61define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);62define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);63define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);6465define_pd_global(bool, RewriteBytecodes, true);66define_pd_global(bool, RewriteFrequentPairs, true);6768define_pd_global(bool, PreserveFramePointer, false);6970define_pd_global(uintx, TypeProfileLevel, 111);7172define_pd_global(bool, CompactStrings, true);7374// 8146801 (Short Array Allocation): No performance work done here yet.75define_pd_global(intx, InitArrayShortSize, 1*BytesPerLong);7677#define ARCH_FLAGS(develop, \78product, \79notproduct, \80range, \81constraint) \82\83/* Reoptimize code-sequences of calls at runtime, e.g. replace an */ \84/* indirect call by a direct call. */ \85product(bool, ReoptimizeCallSequences, true, DIAGNOSTIC, \86"Reoptimize code-sequences of calls at runtime.") \87\88product(bool, UseByteReverseInstruction, true, DIAGNOSTIC, \89"Use byte reverse instruction.") \90\91product(bool, ExpandLoadingBaseDecode, true, DIAGNOSTIC, \92"Expand the assembler instruction required to load the base from " \93"DecodeN nodes during matching.") \94product(bool, ExpandLoadingBaseDecode_NN, true, DIAGNOSTIC, \95"Expand the assembler instruction required to load the base from " \96"DecodeN_NN nodes during matching.") \97product(bool, ExpandLoadingBaseEncode, true, DIAGNOSTIC, \98"Expand the assembler instruction required to load the base from " \99"EncodeP nodes during matching.") \100product(bool, ExpandLoadingBaseEncode_NN, true, DIAGNOSTIC, \101"Expand the assembler instruction required to load the base from " \102"EncodeP_NN nodes during matching.") \103\104/* Seems to pay off with 2 pages already. */ \105product(size_t, MVCLEThreshold, +2*(4*K), DIAGNOSTIC, \106"Threshold above which page-aligned MVCLE copy/init is used.") \107\108product(bool, PreferLAoverADD, false, DIAGNOSTIC, \109"Use LA/LAY instructions over ADD instructions (z/Architecture).") \110\111develop(bool, ZapEmptyStackFields, false, "Write 0x0101... to empty stack" \112" fields. Use this to ease stack debugging.") \113\114product(bool, TraceTraps, false, DIAGNOSTIC, \115"Trace all traps the signal handler handles.")116117// end of ARCH_FLAGS118119#endif // CPU_S390_GLOBALS_S390_HPP120121122