1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/cpu/ppc/vm/globals_ppc.hpp Wed Apr 27 01:25:04 2016 +0800 1.3 @@ -0,0 +1,126 @@ 1.4 +/* 1.5 + * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright 2012, 2013 SAP AG. All rights reserved. 1.7 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 + * 1.9 + * This code is free software; you can redistribute it and/or modify it 1.10 + * under the terms of the GNU General Public License version 2 only, as 1.11 + * published by the Free Software Foundation. 1.12 + * 1.13 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.14 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.15 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.16 + * version 2 for more details (a copy is included in the LICENSE file that 1.17 + * accompanied this code). 1.18 + * 1.19 + * You should have received a copy of the GNU General Public License version 1.20 + * 2 along with this work; if not, write to the Free Software Foundation, 1.21 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.22 + * 1.23 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.24 + * or visit www.oracle.com if you need additional information or have any 1.25 + * questions. 1.26 + * 1.27 + */ 1.28 + 1.29 +#ifndef CPU_PPC_VM_GLOBALS_PPC_HPP 1.30 +#define CPU_PPC_VM_GLOBALS_PPC_HPP 1.31 + 1.32 +#include "utilities/globalDefinitions.hpp" 1.33 +#include "utilities/macros.hpp" 1.34 + 1.35 +// Sets the default values for platform dependent flags used by the runtime system. 1.36 +// (see globals.hpp) 1.37 + 1.38 +define_pd_global(bool, ConvertSleepToYield, true); 1.39 +define_pd_global(bool, ShareVtableStubs, false); // Improves performance markedly for mtrt and compress. 1.40 +define_pd_global(bool, NeedsDeoptSuspend, false); // Only register window machines need this. 1.41 + 1.42 + 1.43 +define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks. 1.44 +define_pd_global(bool, TrapBasedNullChecks, true); 1.45 +define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast. 1.46 + 1.47 +// Use large code-entry alignment. 1.48 +define_pd_global(intx, CodeEntryAlignment, 128); 1.49 +define_pd_global(intx, OptoLoopAlignment, 16); 1.50 +define_pd_global(intx, InlineFrequencyCount, 100); 1.51 +define_pd_global(intx, InlineSmallCode, 1500); 1.52 + 1.53 +define_pd_global(intx, PreInflateSpin, 10); 1.54 + 1.55 +// Flags for template interpreter. 1.56 +define_pd_global(bool, RewriteBytecodes, true); 1.57 +define_pd_global(bool, RewriteFrequentPairs, true); 1.58 + 1.59 +define_pd_global(bool, UseMembar, false); 1.60 + 1.61 +// GC Ergo Flags 1.62 +define_pd_global(uintx, CMSYoungGenPerWorker, 16*M); // Default max size of CMS young gen, per GC worker thread. 1.63 + 1.64 +define_pd_global(uintx, TypeProfileLevel, 0); 1.65 + 1.66 +// Platform dependent flag handling: flags only defined on this platform. 1.67 +#define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \ 1.68 + \ 1.69 + /* Load poll address from thread. This is used to implement per-thread */ \ 1.70 + /* safepoints on platforms != IA64. */ \ 1.71 + product(bool, LoadPollAddressFromThread, false, \ 1.72 + "Load polling page address from thread object (required for " \ 1.73 + "per-thread safepoints on platforms != IA64)") \ 1.74 + \ 1.75 + product(uintx, PowerArchitecturePPC64, 0, \ 1.76 + "CPU Version: x for PowerX. Currently recognizes Power5 to " \ 1.77 + "Power7. Default is 0. CPUs newer than Power7 will be " \ 1.78 + "recognized as Power7.") \ 1.79 + \ 1.80 + /* Reoptimize code-sequences of calls at runtime, e.g. replace an */ \ 1.81 + /* indirect call by a direct call. */ \ 1.82 + product(bool, ReoptimizeCallSequences, true, \ 1.83 + "Reoptimize code-sequences of calls at runtime.") \ 1.84 + \ 1.85 + product(bool, UseLoadInstructionsForStackBangingPPC64, false, \ 1.86 + "Use load instructions for stack banging.") \ 1.87 + \ 1.88 + /* special instructions */ \ 1.89 + \ 1.90 + product(bool, UseCountLeadingZerosInstructionsPPC64, true, \ 1.91 + "Use count leading zeros instructions.") \ 1.92 + \ 1.93 + product(bool, UseExtendedLoadAndReserveInstructionsPPC64, false, \ 1.94 + "Use extended versions of load-and-reserve instructions.") \ 1.95 + \ 1.96 + product(bool, UseRotateAndMaskInstructionsPPC64, true, \ 1.97 + "Use rotate and mask instructions.") \ 1.98 + \ 1.99 + product(bool, UseStaticBranchPredictionInCompareAndSwapPPC64, true, \ 1.100 + "Use static branch prediction hints in CAS operations.") \ 1.101 + product(bool, UseStaticBranchPredictionForUncommonPathsPPC64, false, \ 1.102 + "Use static branch prediction hints for uncommon paths.") \ 1.103 + \ 1.104 + product(bool, UsePower6SchedulerPPC64, false, \ 1.105 + "Use Power6 Scheduler.") \ 1.106 + \ 1.107 + product(bool, InsertEndGroupPPC64, false, \ 1.108 + "Insert EndGroup instructions to optimize for Power6.") \ 1.109 + \ 1.110 + /* Trap based checks. */ \ 1.111 + /* Trap based checks use the ppc trap instructions to check certain */ \ 1.112 + /* conditions. This instruction raises a SIGTRAP caught by the */ \ 1.113 + /* exception handler of the VM. */ \ 1.114 + product(bool, UseSIGTRAP, true, \ 1.115 + "Allow trap instructions that make use of SIGTRAP. Use this to " \ 1.116 + "switch off all optimizations requiring SIGTRAP.") \ 1.117 + product(bool, TrapBasedICMissChecks, true, \ 1.118 + "Raise and handle SIGTRAP if inline cache miss detected.") \ 1.119 + product(bool, TrapBasedNotEntrantChecks, true, \ 1.120 + "Raise and handle SIGTRAP if calling not entrant or zombie" \ 1.121 + " method.") \ 1.122 + product(bool, TraceTraps, false, "Trace all traps the signal handler" \ 1.123 + "handles.") \ 1.124 + \ 1.125 + product(bool, ZapMemory, false, "Write 0x0101... to empty memory." \ 1.126 + " Use this to ease debugging.") \ 1.127 + 1.128 + 1.129 +#endif // CPU_PPC_VM_GLOBALS_PPC_HPP