Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/shark/shark_globals.hpp
32285 views
/*1* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.2* Copyright 2008, 2009, 2010 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 SHARE_VM_SHARK_SHARK_GLOBALS_HPP26#define SHARE_VM_SHARK_SHARK_GLOBALS_HPP2728#include "runtime/globals.hpp"29#ifdef TARGET_ARCH_zero30# include "shark_globals_zero.hpp"31#endif3233#define SHARK_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct) \34\35product(intx, MaxNodeLimit, 65000, \36"Maximum number of nodes") \37\38/* inlining */ \39product(intx, SharkMaxInlineSize, 32, \40"Maximum bytecode size of methods to inline when using Shark") \41\42product(bool, EliminateNestedLocks, true, \43"Eliminate nested locks of the same object when possible") \44\45product(ccstr, SharkOptimizationLevel, "Default", \46"The optimization level passed to LLVM, possible values: None, Less, Default and Agressive") \47\48/* compiler debugging */ \49develop(ccstr, SharkPrintTypeflowOf, NULL, \50"Print the typeflow of the specified method") \51\52diagnostic(ccstr, SharkPrintBitcodeOf, NULL, \53"Print the LLVM bitcode of the specified method") \54\55diagnostic(ccstr, SharkPrintAsmOf, NULL, \56"Print the asm of the specified method") \57\58develop(bool, SharkTraceBytecodes, false, \59"Trace bytecode compilation") \60\61diagnostic(bool, SharkTraceInstalls, false, \62"Trace method installation") \63\64diagnostic(bool, SharkPerformanceWarnings, false, \65"Warn about things that could be made faster") \66\67develop(ccstr, SharkVerifyFunction, NULL, \68"Runs LLVM verify over LLVM IR") \697071SHARK_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)7273#endif // SHARE_VM_SHARK_SHARK_GLOBALS_HPP747576