Path: blob/master/src/hotspot/cpu/zero/globals_zero.hpp
40930 views
/*1* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.2* Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.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_ZERO_GLOBALS_ZERO_HPP26#define CPU_ZERO_GLOBALS_ZERO_HPP2728#include "utilities/globalDefinitions.hpp"29#include "utilities/macros.hpp"3031// Set the default values for platform dependent flags used by the32// runtime system. See globals.hpp for details of what they do.3334define_pd_global(bool, ImplicitNullChecks, true);35define_pd_global(bool, TrapBasedNullChecks, false);36define_pd_global(bool, UncommonNullCast, true);3738define_pd_global(uintx, CodeCacheSegmentSize, 64 COMPILER1_AND_COMPILER2_PRESENT(+64)); // Tiered compilation has large code-entry alignment.39define_pd_global(intx, CodeEntryAlignment, 32);40define_pd_global(intx, OptoLoopAlignment, 16);41define_pd_global(intx, InlineFrequencyCount, 100);42define_pd_global(intx, InlineSmallCode, 1000);4344// not used, but must satisfy following constraints:45// 1.) <VALUE> must be in the allowed range for intx *and*46// 2.) <VALUE> % BytesPerLong == 0 so as to not47// violate the constraint verifier on JVM start-up.48define_pd_global(intx, InitArrayShortSize, 0);4950#define DEFAULT_STACK_YELLOW_PAGES (2)51#define DEFAULT_STACK_RED_PAGES (1)52#define DEFAULT_STACK_SHADOW_PAGES (5 LP64_ONLY(+1) DEBUG_ONLY(+3))53#define DEFAULT_STACK_RESERVED_PAGES (0)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(uintx, TypeProfileLevel, 0);6970define_pd_global(bool, PreserveFramePointer, false);7172// No performance work done here yet.73define_pd_global(bool, CompactStrings, false);7475#define ARCH_FLAGS(develop, \76product, \77notproduct, \78range, \79constraint) \80\81product(bool, UseFastEmptyMethods, true, \82"Use fast method entry code for empty methods") \83\84product(bool, UseFastAccessorMethods, true, \85"Use fast method entry code for accessor methods")8687// end of ARCH_FLAGS8889#endif // CPU_ZERO_GLOBALS_ZERO_HPP909192