Path: blob/master/src/hotspot/share/compiler/compiler_globals_pd.hpp
40930 views
/*1* Copyright (c) 2020, 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 SHARE_COMPILER_COMPILER_GLOBALS_PD_HPP25#define SHARE_COMPILER_COMPILER_GLOBALS_PD_HPP2627// Platform-specific Default values for VM flags used by the compiler.28//29// Note: for historical reasons, some of these flags are declared in globals.hpp.30// E.g., BackgroundCompilation. Such declarations should be moved to this31// file instead.3233#include "runtime/globals_shared.hpp"34#ifdef COMPILER135#include "c1/c1_globals_pd.hpp"36#endif // COMPILER137#ifdef COMPILER238#include "opto/c2_globals_pd.hpp"39#endif // COMPILER24041// JVMCI has no platform-specific global definitions42//#if INCLUDE_JVMCI43//#include "jvmci/jvmci_globals_pd.hpp"44//#endif4546#if !defined(COMPILER1) && !defined(COMPILER2) && !INCLUDE_JVMCI47define_pd_global(bool, BackgroundCompilation, false);48define_pd_global(bool, CICompileOSR, false);49define_pd_global(bool, UseTypeProfile, false);50define_pd_global(bool, UseOnStackReplacement, false);51define_pd_global(bool, InlineIntrinsics, false);52define_pd_global(bool, PreferInterpreterNativeStubs, true);53define_pd_global(bool, ProfileInterpreter, false);54define_pd_global(bool, ProfileTraps, false);55define_pd_global(bool, TieredCompilation, false);5657define_pd_global(intx, CompileThreshold, 0);5859define_pd_global(intx, OnStackReplacePercentage, 0);60define_pd_global(size_t, NewSizeThreadIncrease, 4*K);61define_pd_global(bool, InlineClassNatives, true);62define_pd_global(bool, InlineUnsafeOps, true);63define_pd_global(uintx, InitialCodeCacheSize, 160*K);64define_pd_global(uintx, ReservedCodeCacheSize, 32*M);65define_pd_global(uintx, NonProfiledCodeHeapSize, 0);66define_pd_global(uintx, ProfiledCodeHeapSize, 0);67define_pd_global(uintx, NonNMethodCodeHeapSize, 32*M);6869define_pd_global(uintx, CodeCacheExpansionSize, 32*K);70define_pd_global(uintx, CodeCacheMinBlockLength, 1);71define_pd_global(uintx, CodeCacheMinimumUseSpace, 200*K);72define_pd_global(bool, NeverActAsServerClassMachine, true);73define_pd_global(uint64_t,MaxRAM, 1ULL*G);74#define CI_COMPILER_COUNT 075#else7677#if COMPILER2_OR_JVMCI78#define CI_COMPILER_COUNT 279#else80#define CI_COMPILER_COUNT 181#endif // COMPILER2_OR_JVMCI8283#endif // no compilers8485#endif // SHARE_COMPILER_COMPILER_GLOBALS_PD_HPP868788