src/cpu/sparc/vm/globals_sparc.hpp

Wed, 22 Jan 2014 17:42:23 -0800

author
kvn
date
Wed, 22 Jan 2014 17:42:23 -0800
changeset 6503
a9becfeecd1b
parent 6490
41b780b43b74
parent 6198
55fb97c4c58d
child 6876
710a3c8b516e
child 7854
e8260b6328fb
permissions
-rw-r--r--

Merge

duke@435 1 /*
mikael@6198 2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
duke@435 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 *
duke@435 5 * This code is free software; you can redistribute it and/or modify it
duke@435 6 * under the terms of the GNU General Public License version 2 only, as
duke@435 7 * published by the Free Software Foundation.
duke@435 8 *
duke@435 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 * accompanied this code).
duke@435 14 *
duke@435 15 * You should have received a copy of the GNU General Public License version
duke@435 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 *
trims@1907 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 * or visit www.oracle.com if you need additional information or have any
trims@1907 21 * questions.
duke@435 22 *
duke@435 23 */
duke@435 24
stefank@2314 25 #ifndef CPU_SPARC_VM_GLOBALS_SPARC_HPP
stefank@2314 26 #define CPU_SPARC_VM_GLOBALS_SPARC_HPP
stefank@2314 27
stefank@2314 28 #include "utilities/globalDefinitions.hpp"
stefank@2314 29 #include "utilities/macros.hpp"
stefank@2314 30
duke@435 31 // Sets the default values for platform dependent flags used by the runtime system.
duke@435 32 // (see globals.hpp)
duke@435 33
duke@435 34 // For sparc we do not do call backs when a thread is in the interpreter, because the
duke@435 35 // interpreter dispatch needs at least two instructions - first to load the dispatch address
duke@435 36 // in a register, and second to jmp. The swapping of the dispatch table may occur _after_
duke@435 37 // the load of the dispatch address and hence the jmp would still go to the location
duke@435 38 // according to the prior table. So, we let the thread continue and let it block by itself.
duke@435 39 define_pd_global(bool, DontYieldALot, true); // yield no more than 100 times per second
duke@435 40 define_pd_global(bool, ConvertSleepToYield, false); // do not convert sleep(0) to yield. Helps GUI
duke@435 41 define_pd_global(bool, ShareVtableStubs, false); // improves performance markedly for mtrt and compress
duke@435 42 define_pd_global(bool, CountInterpCalls, false); // not implemented in the interpreter
duke@435 43 define_pd_global(bool, NeedsDeoptSuspend, true); // register window machines need this
duke@435 44
duke@435 45 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks
goetz@6490 46 define_pd_global(bool, TrapBasedNullChecks, false); // Not needed on sparc.
goetz@6490 47 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast
duke@435 48
phh@1499 49 define_pd_global(intx, CodeEntryAlignment, 32);
kvn@1800 50 // The default setting 16/16 seems to work best.
kvn@1800 51 // (For _228_jack 16/16 is 2% better than 4/4, 16/4, 32/32, 32/16, or 16/32.)
kvn@1800 52 define_pd_global(intx, OptoLoopAlignment, 16); // = 4*wordSize
phh@1499 53 define_pd_global(intx, InlineFrequencyCount, 50); // we can use more inlining on the SPARC
phh@1499 54 define_pd_global(intx, InlineSmallCode, 1500);
ysr@2650 55
duke@435 56 #ifdef _LP64
duke@435 57 // Stack slots are 2X larger in LP64 than in the 32 bit VM.
phh@1499 58 define_pd_global(intx, ThreadStackSize, 1024);
phh@1499 59 define_pd_global(intx, VMThreadStackSize, 1024);
coleenp@3552 60 define_pd_global(intx, StackShadowPages, 10 DEBUG_ONLY(+1));
duke@435 61 #else
phh@1499 62 define_pd_global(intx, ThreadStackSize, 512);
phh@1499 63 define_pd_global(intx, VMThreadStackSize, 512);
coleenp@3552 64 define_pd_global(intx, StackShadowPages, 3 DEBUG_ONLY(+1));
duke@435 65 #endif
duke@435 66
duke@435 67 define_pd_global(intx, StackYellowPages, 2);
duke@435 68 define_pd_global(intx, StackRedPages, 1);
duke@435 69
phh@1499 70 define_pd_global(intx, PreInflateSpin, 40); // Determined by running design center
duke@435 71
duke@435 72 define_pd_global(bool, RewriteBytecodes, true);
duke@435 73 define_pd_global(bool, RewriteFrequentPairs, true);
bobv@2223 74
bobv@2223 75 define_pd_global(bool, UseMembar, false);
stefank@2314 76
ysr@2650 77 // GC Ergo Flags
tschatzl@5119 78 define_pd_global(uintx, CMSYoungGenPerWorker, 16*M); // default max size of CMS young gen, per GC worker thread
twisti@4020 79
roland@5914 80 define_pd_global(uintx, TypeProfileLevel, 0);
roland@5914 81
twisti@4020 82 #define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct) \
twisti@4020 83 \
twisti@4020 84 product(intx, UseVIS, 99, \
twisti@4020 85 "Highest supported VIS instructions set on Sparc") \
twisti@4020 86 \
twisti@4020 87 product(bool, UseCBCond, false, \
twisti@4020 88 "Use compare and branch instruction on SPARC") \
twisti@4020 89 \
twisti@4020 90 product(bool, UseBlockZeroing, false, \
twisti@4020 91 "Use special cpu instructions for block zeroing") \
twisti@4020 92 \
twisti@4020 93 product(intx, BlockZeroingLowLimit, 2048, \
twisti@4020 94 "Minimum size in bytes when block zeroing will be used") \
twisti@4020 95 \
twisti@4020 96 product(bool, UseBlockCopy, false, \
twisti@4020 97 "Use special cpu instructions for block copy") \
twisti@4020 98 \
twisti@4020 99 product(intx, BlockCopyLowLimit, 2048, \
twisti@4020 100 "Minimum size in bytes when block copy will be used") \
twisti@4020 101 \
twisti@4020 102 develop(bool, UseV8InstrsOnly, false, \
twisti@4020 103 "Use SPARC-V8 Compliant instruction subset") \
twisti@4020 104 \
twisti@4020 105 product(bool, UseNiagaraInstrs, false, \
twisti@4020 106 "Use Niagara-efficient instruction subset") \
twisti@4020 107 \
twisti@4020 108 develop(bool, UseCASForSwap, false, \
twisti@4020 109 "Do not use swap instructions, but only CAS (in a loop) on SPARC")\
twisti@4020 110 \
twisti@4020 111 product(uintx, ArraycopySrcPrefetchDistance, 0, \
twisti@4020 112 "Distance to prefetch source array in arracopy") \
twisti@4020 113 \
twisti@4020 114 product(uintx, ArraycopyDstPrefetchDistance, 0, \
twisti@4020 115 "Distance to prefetch destination array in arracopy") \
twisti@4020 116
stefank@2314 117 #endif // CPU_SPARC_VM_GLOBALS_SPARC_HPP

mercurial