Path: blob/master/src/hotspot/cpu/aarch64/globals_aarch64.hpp
40930 views
/*1* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.2* Copyright (c) 2015, 2019, Red Hat Inc. 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_AARCH64_GLOBALS_AARCH64_HPP26#define CPU_AARCH64_GLOBALS_AARCH64_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 checks35define_pd_global(bool, TrapBasedNullChecks, false);36define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs past to check cast3738define_pd_global(uintx, CodeCacheSegmentSize, 64 COMPILER1_AND_COMPILER2_PRESENT(+64)); // Tiered compilation has large code-entry alignment.39define_pd_global(intx, CodeEntryAlignment, 64);40define_pd_global(intx, OptoLoopAlignment, 16);41define_pd_global(intx, InlineFrequencyCount, 100);4243#define DEFAULT_STACK_YELLOW_PAGES (2)44#define DEFAULT_STACK_RED_PAGES (1)45// Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the46// stack if compiled for unix and LP64. To pass stack overflow tests we need47// 20 shadow pages.48#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+5))49#define DEFAULT_STACK_RESERVED_PAGES (1)5051#define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES52#define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES53#define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES54#define MIN_STACK_RESERVED_PAGES (0)5556define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);57define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);58define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);59define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);6061define_pd_global(bool, RewriteBytecodes, true);62define_pd_global(bool, RewriteFrequentPairs, true);6364define_pd_global(bool, PreserveFramePointer, false);6566define_pd_global(uintx, TypeProfileLevel, 111);6768define_pd_global(bool, CompactStrings, true);6970// Clear short arrays bigger than one word in an arch-specific way71define_pd_global(intx, InitArrayShortSize, BytesPerLong);7273#if defined(COMPILER1) || defined(COMPILER2)74define_pd_global(intx, InlineSmallCode, 1000);75#endif7677#define ARCH_FLAGS(develop, \78product, \79notproduct, \80range, \81constraint) \82\83product(bool, NearCpool, true, \84"constant pool is close to instructions") \85product(bool, UseNeon, false, \86"Use Neon for CRC32 computation") \87product(bool, UseCRC32, false, \88"Use CRC32 instructions for CRC32 computation") \89product(bool, UseSIMDForMemoryOps, false, \90"Use SIMD instructions in generated memory move code") \91product(bool, UseSIMDForArrayEquals, true, \92"Use SIMD instructions in generated array equals code") \93product(bool, UseSimpleArrayEquals, false, \94"Use simpliest and shortest implementation for array equals") \95product(bool, UseSIMDForBigIntegerShiftIntrinsics, true, \96"Use SIMD instructions for left/right shift of BigInteger") \97product(bool, AvoidUnalignedAccesses, false, \98"Avoid generating unaligned memory accesses") \99product(bool, UseLSE, false, \100"Use LSE instructions") \101product(uint, UseSVE, 0, \102"Highest supported SVE instruction set version") \103range(0, 2) \104product(bool, UseBlockZeroing, true, \105"Use DC ZVA for block zeroing") \106product(intx, BlockZeroingLowLimit, 256, \107"Minimum size in bytes when block zeroing will be used") \108range(1, max_jint) \109product(bool, TraceTraps, false, "Trace all traps the signal handler")\110product(int, SoftwarePrefetchHintDistance, -1, \111"Use prfm hint with specified distance in compiled code." \112"Value -1 means off.") \113range(-1, 4096)114115// end of ARCH_FLAGS116117#endif // CPU_AARCH64_GLOBALS_AARCH64_HPP118119120