src/cpu/ppc/vm/globals_ppc.hpp

changeset 6458
ec28f9c041ff
child 6473
bd29f2c96a5f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/cpu/ppc/vm/globals_ppc.hpp	Fri Aug 02 16:46:45 2013 +0200
     1.3 @@ -0,0 +1,116 @@
     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, UncommonNullCast,      true);  // Uncommon-trap NULLs passed to check cast.
    1.45 +
    1.46 +// Use large code-entry alignment.
    1.47 +define_pd_global(intx, CodeEntryAlignment,    128);
    1.48 +define_pd_global(intx, OptoLoopAlignment,     16);
    1.49 +define_pd_global(intx, InlineFrequencyCount,  100);
    1.50 +define_pd_global(intx, InlineSmallCode,       1500);
    1.51 +
    1.52 +define_pd_global(intx, PreInflateSpin,        10);
    1.53 +
    1.54 +// Flags for template interpreter.
    1.55 +define_pd_global(bool, RewriteBytecodes,      true);
    1.56 +define_pd_global(bool, RewriteFrequentPairs,  true);
    1.57 +
    1.58 +define_pd_global(bool, UseMembar,             false);
    1.59 +
    1.60 +// GC Ergo Flags
    1.61 +define_pd_global(intx, CMSYoungGenPerWorker,  16*M);  // Default max size of CMS young gen, per GC worker thread.
    1.62 +
    1.63 +
    1.64 +// Platform dependent flag handling: flags only defined on this platform.
    1.65 +#define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct)  \
    1.66 +  product(uintx, PowerArchitecturePPC64, 0,                                 \
    1.67 +          "CPU Version: x for PowerX. Currently recognizes Power5 to "      \
    1.68 +          "Power7. Default is 0. CPUs newer than Power7 will be "           \
    1.69 +          "recognized as Power7.")                                          \
    1.70 +                                                                            \
    1.71 +  /* Reoptimize code-sequences of calls at runtime, e.g. replace an */      \
    1.72 +  /* indirect call by a direct call.                                */      \
    1.73 +  product(bool, ReoptimizeCallSequences, true,                              \
    1.74 +          "Reoptimize code-sequences of calls at runtime.")                 \
    1.75 +                                                                            \
    1.76 +  product(bool, UseLoadInstructionsForStackBangingPPC64, false,             \
    1.77 +          "Use load instructions for stack banging.")                       \
    1.78 +                                                                            \
    1.79 +  /* special instructions */                                                \
    1.80 +                                                                            \
    1.81 +  product(bool, UseCountLeadingZerosInstructionsPPC64, true,                \
    1.82 +          "Use count leading zeros instructions.")                          \
    1.83 +                                                                            \
    1.84 +  product(bool, UseExtendedLoadAndReserveInstructionsPPC64, false,          \
    1.85 +          "Use extended versions of load-and-reserve instructions.")        \
    1.86 +                                                                            \
    1.87 +  product(bool, UseRotateAndMaskInstructionsPPC64, true,                    \
    1.88 +          "Use rotate and mask instructions.")                              \
    1.89 +                                                                            \
    1.90 +  product(bool, UseStaticBranchPredictionInCompareAndSwapPPC64, true,       \
    1.91 +          "Use static branch prediction hints in CAS operations.")          \
    1.92 +                                                                            \
    1.93 +  /* Trap based checks. */                                                  \
    1.94 +  /* Trap based checks use the ppc trap instructions to check certain */    \
    1.95 +  /* conditions. This instruction raises a SIGTRAP caught by the      */    \
    1.96 +  /* exception handler of the VM.                                     */    \
    1.97 +  product(bool, UseSIGTRAP, false,                                          \
    1.98 +          "Allow trap instructions that make use of SIGTRAP. Use this to "  \
    1.99 +          "switch off all optimizations requiring SIGTRAP.")                \
   1.100 +  product(bool, TrapBasedICMissChecks, true,                                \
   1.101 +          "Raise and handle SIGTRAP if inline cache miss detected.")        \
   1.102 +  product(bool, TrapBasedNotEntrantChecks, true,                            \
   1.103 +          "Raise and handle SIGTRAP if calling not entrant or zombie"       \
   1.104 +          " method.")                                                       \
   1.105 +  product(bool, TrapBasedNullChecks, true,                                  \
   1.106 +          "Generate code for null checks that uses a cmp and trap "         \
   1.107 +          "instruction raising SIGTRAP.  This is only used if an access to" \
   1.108 +          "null (+offset) will not raise a SIGSEGV.")                       \
   1.109 +  product(bool, TrapBasedRangeChecks, true,                                 \
   1.110 +          "Raise and handle SIGTRAP if array out of bounds check fails.")   \
   1.111 +  product(bool, TraceTraps, false, "Trace all traps the signal handler"     \
   1.112 +          "handles.")                                                       \
   1.113 +                                                                            \
   1.114 +  product(bool, ZapMemory, false, "Write 0x0101... to empty memory."        \
   1.115 +          " Use this to ease debugging.")                                   \
   1.116 +
   1.117 +
   1.118 +
   1.119 +#endif // CPU_PPC_VM_GLOBALS_PPC_HPP

mercurial