src/cpu/ppc/vm/globals_ppc.hpp

Tue, 08 Aug 2017 15:57:29 +0800

author
aoqi
date
Tue, 08 Aug 2017 15:57:29 +0800
changeset 6876
710a3c8b516e
parent 6495
67fa91961822
parent 0
f90c822e73f8
child 7994
04ff2f6cd0eb
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * Copyright 2012, 2013 SAP AG. All rights reserved.
aoqi@0 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 5 *
aoqi@0 6 * This code is free software; you can redistribute it and/or modify it
aoqi@0 7 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 8 * published by the Free Software Foundation.
aoqi@0 9 *
aoqi@0 10 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 13 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 14 * accompanied this code).
aoqi@0 15 *
aoqi@0 16 * You should have received a copy of the GNU General Public License version
aoqi@0 17 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 19 *
aoqi@0 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 21 * or visit www.oracle.com if you need additional information or have any
aoqi@0 22 * questions.
aoqi@0 23 *
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 #ifndef CPU_PPC_VM_GLOBALS_PPC_HPP
aoqi@0 27 #define CPU_PPC_VM_GLOBALS_PPC_HPP
aoqi@0 28
aoqi@0 29 #include "utilities/globalDefinitions.hpp"
aoqi@0 30 #include "utilities/macros.hpp"
aoqi@0 31
aoqi@0 32 // Sets the default values for platform dependent flags used by the runtime system.
aoqi@0 33 // (see globals.hpp)
aoqi@0 34
aoqi@0 35 define_pd_global(bool, ConvertSleepToYield, true);
aoqi@0 36 define_pd_global(bool, ShareVtableStubs, false); // Improves performance markedly for mtrt and compress.
aoqi@0 37 define_pd_global(bool, NeedsDeoptSuspend, false); // Only register window machines need this.
aoqi@0 38
aoqi@0 39
aoqi@0 40 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks.
aoqi@0 41 define_pd_global(bool, TrapBasedNullChecks, true);
aoqi@0 42 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast.
aoqi@0 43
aoqi@0 44 // Use large code-entry alignment.
aoqi@0 45 define_pd_global(intx, CodeEntryAlignment, 128);
aoqi@0 46 define_pd_global(intx, OptoLoopAlignment, 16);
aoqi@0 47 define_pd_global(intx, InlineFrequencyCount, 100);
aoqi@0 48 define_pd_global(intx, InlineSmallCode, 1500);
aoqi@0 49
aoqi@0 50 define_pd_global(intx, PreInflateSpin, 10);
aoqi@0 51
aoqi@0 52 // Flags for template interpreter.
aoqi@0 53 define_pd_global(bool, RewriteBytecodes, true);
aoqi@0 54 define_pd_global(bool, RewriteFrequentPairs, true);
aoqi@0 55
aoqi@0 56 define_pd_global(bool, UseMembar, false);
aoqi@0 57
aoqi@0 58 // GC Ergo Flags
aoqi@0 59 define_pd_global(uintx, CMSYoungGenPerWorker, 16*M); // Default max size of CMS young gen, per GC worker thread.
aoqi@0 60
aoqi@0 61 define_pd_global(uintx, TypeProfileLevel, 0);
aoqi@0 62
aoqi@0 63 // Platform dependent flag handling: flags only defined on this platform.
aoqi@0 64 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \
aoqi@0 65 \
aoqi@0 66 /* Load poll address from thread. This is used to implement per-thread */ \
aoqi@0 67 /* safepoints on platforms != IA64. */ \
aoqi@0 68 product(bool, LoadPollAddressFromThread, false, \
aoqi@0 69 "Load polling page address from thread object (required for " \
aoqi@0 70 "per-thread safepoints on platforms != IA64)") \
aoqi@0 71 \
aoqi@0 72 product(uintx, PowerArchitecturePPC64, 0, \
aoqi@0 73 "CPU Version: x for PowerX. Currently recognizes Power5 to " \
aoqi@0 74 "Power7. Default is 0. CPUs newer than Power7 will be " \
aoqi@0 75 "recognized as Power7.") \
aoqi@0 76 \
aoqi@0 77 /* Reoptimize code-sequences of calls at runtime, e.g. replace an */ \
aoqi@0 78 /* indirect call by a direct call. */ \
aoqi@0 79 product(bool, ReoptimizeCallSequences, true, \
aoqi@0 80 "Reoptimize code-sequences of calls at runtime.") \
aoqi@0 81 \
aoqi@0 82 product(bool, UseLoadInstructionsForStackBangingPPC64, false, \
aoqi@0 83 "Use load instructions for stack banging.") \
aoqi@0 84 \
aoqi@0 85 /* special instructions */ \
aoqi@0 86 \
aoqi@0 87 product(bool, UseCountLeadingZerosInstructionsPPC64, true, \
aoqi@0 88 "Use count leading zeros instructions.") \
aoqi@0 89 \
aoqi@0 90 product(bool, UseExtendedLoadAndReserveInstructionsPPC64, false, \
aoqi@0 91 "Use extended versions of load-and-reserve instructions.") \
aoqi@0 92 \
aoqi@0 93 product(bool, UseRotateAndMaskInstructionsPPC64, true, \
aoqi@0 94 "Use rotate and mask instructions.") \
aoqi@0 95 \
aoqi@0 96 product(bool, UseStaticBranchPredictionInCompareAndSwapPPC64, true, \
aoqi@0 97 "Use static branch prediction hints in CAS operations.") \
aoqi@0 98 product(bool, UseStaticBranchPredictionForUncommonPathsPPC64, false, \
aoqi@0 99 "Use static branch prediction hints for uncommon paths.") \
aoqi@0 100 \
aoqi@0 101 product(bool, UsePower6SchedulerPPC64, false, \
aoqi@0 102 "Use Power6 Scheduler.") \
aoqi@0 103 \
aoqi@0 104 product(bool, InsertEndGroupPPC64, false, \
aoqi@0 105 "Insert EndGroup instructions to optimize for Power6.") \
aoqi@0 106 \
aoqi@0 107 /* Trap based checks. */ \
aoqi@0 108 /* Trap based checks use the ppc trap instructions to check certain */ \
aoqi@0 109 /* conditions. This instruction raises a SIGTRAP caught by the */ \
aoqi@0 110 /* exception handler of the VM. */ \
aoqi@0 111 product(bool, UseSIGTRAP, true, \
aoqi@0 112 "Allow trap instructions that make use of SIGTRAP. Use this to " \
aoqi@0 113 "switch off all optimizations requiring SIGTRAP.") \
aoqi@0 114 product(bool, TrapBasedICMissChecks, true, \
aoqi@0 115 "Raise and handle SIGTRAP if inline cache miss detected.") \
aoqi@0 116 product(bool, TrapBasedNotEntrantChecks, true, \
aoqi@0 117 "Raise and handle SIGTRAP if calling not entrant or zombie" \
aoqi@0 118 " method.") \
aoqi@0 119 product(bool, TraceTraps, false, "Trace all traps the signal handler" \
aoqi@0 120 "handles.") \
aoqi@0 121 \
aoqi@0 122 product(bool, ZapMemory, false, "Write 0x0101... to empty memory." \
aoqi@0 123 " Use this to ease debugging.") \
aoqi@0 124
aoqi@0 125
aoqi@0 126 #endif // CPU_PPC_VM_GLOBALS_PPC_HPP

mercurial