2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2016-02-15 05:54:59 -05:00
|
|
|
* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
2010-05-27 19:08:38 -07:00
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-11-23 13:22:55 -08:00
|
|
|
#ifndef CPU_SPARC_VM_GLOBALS_SPARC_HPP
|
|
|
|
#define CPU_SPARC_VM_GLOBALS_SPARC_HPP
|
|
|
|
|
|
|
|
#include "utilities/globalDefinitions.hpp"
|
|
|
|
#include "utilities/macros.hpp"
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
// Sets the default values for platform dependent flags used by the runtime system.
|
|
|
|
// (see globals.hpp)
|
|
|
|
|
|
|
|
// For sparc we do not do call backs when a thread is in the interpreter, because the
|
|
|
|
// interpreter dispatch needs at least two instructions - first to load the dispatch address
|
|
|
|
// in a register, and second to jmp. The swapping of the dispatch table may occur _after_
|
|
|
|
// the load of the dispatch address and hence the jmp would still go to the location
|
|
|
|
// according to the prior table. So, we let the thread continue and let it block by itself.
|
|
|
|
define_pd_global(bool, DontYieldALot, true); // yield no more than 100 times per second
|
|
|
|
define_pd_global(bool, ShareVtableStubs, false); // improves performance markedly for mtrt and compress
|
|
|
|
define_pd_global(bool, NeedsDeoptSuspend, true); // register window machines need this
|
|
|
|
|
|
|
|
define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks
|
2013-11-27 16:16:21 -08:00
|
|
|
define_pd_global(bool, TrapBasedNullChecks, false); // Not needed on sparc.
|
|
|
|
define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2009-10-28 16:25:51 -04:00
|
|
|
define_pd_global(intx, CodeEntryAlignment, 32);
|
2010-04-07 09:37:47 -07:00
|
|
|
// The default setting 16/16 seems to work best.
|
|
|
|
// (For _228_jack 16/16 is 2% better than 4/4, 16/4, 32/32, 32/16, or 16/32.)
|
|
|
|
define_pd_global(intx, OptoLoopAlignment, 16); // = 4*wordSize
|
2009-10-28 16:25:51 -04:00
|
|
|
define_pd_global(intx, InlineFrequencyCount, 50); // we can use more inlining on the SPARC
|
|
|
|
define_pd_global(intx, InlineSmallCode, 1500);
|
2011-03-16 10:37:08 -07:00
|
|
|
|
2015-10-15 13:34:21 -05:00
|
|
|
#define DEFAULT_STACK_YELLOW_PAGES (2)
|
|
|
|
#define DEFAULT_STACK_RED_PAGES (1)
|
2015-12-11 09:07:07 -08:00
|
|
|
#define DEFAULT_STACK_RESERVED_PAGES (SOLARIS_ONLY(1) NOT_SOLARIS(0))
|
2015-10-15 13:34:21 -05:00
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
#ifdef _LP64
|
|
|
|
// Stack slots are 2X larger in LP64 than in the 32 bit VM.
|
2009-10-28 16:25:51 -04:00
|
|
|
define_pd_global(intx, ThreadStackSize, 1024);
|
|
|
|
define_pd_global(intx, VMThreadStackSize, 1024);
|
2016-06-13 09:28:25 +02:00
|
|
|
#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2))
|
2007-12-01 00:00:00 +00:00
|
|
|
#else
|
2009-10-28 16:25:51 -04:00
|
|
|
define_pd_global(intx, ThreadStackSize, 512);
|
|
|
|
define_pd_global(intx, VMThreadStackSize, 512);
|
2016-06-13 09:28:25 +02:00
|
|
|
#define DEFAULT_STACK_SHADOW_PAGES (6 DEBUG_ONLY(+2))
|
2015-10-15 13:34:21 -05:00
|
|
|
#endif // _LP64
|
|
|
|
|
|
|
|
#define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES
|
|
|
|
#define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES
|
|
|
|
#define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES
|
2015-12-11 09:07:07 -08:00
|
|
|
#define MIN_STACK_RESERVED_PAGES (0)
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2015-10-15 13:34:21 -05:00
|
|
|
define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);
|
|
|
|
define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);
|
|
|
|
define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);
|
2015-12-11 09:07:07 -08:00
|
|
|
define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
define_pd_global(bool, RewriteBytecodes, true);
|
|
|
|
define_pd_global(bool, RewriteFrequentPairs, true);
|
2010-10-07 15:12:57 -04:00
|
|
|
|
|
|
|
define_pd_global(bool, UseMembar, false);
|
2010-11-23 13:22:55 -08:00
|
|
|
|
2015-04-27 10:49:43 +02:00
|
|
|
define_pd_global(bool, PreserveFramePointer, false);
|
|
|
|
|
2011-03-16 10:37:08 -07:00
|
|
|
// GC Ergo Flags
|
2015-03-03 18:01:27 +01:00
|
|
|
define_pd_global(size_t, CMSYoungGenPerWorker, 16*M); // default max size of CMS young gen, per GC worker thread
|
2012-08-27 15:17:17 -07:00
|
|
|
|
2015-05-19 16:05:12 +02:00
|
|
|
define_pd_global(uintx, TypeProfileLevel, 111);
|
2013-10-09 16:32:21 +02:00
|
|
|
|
8141132: JEP 254: Compact Strings
Adopt a more space-efficient internal representation for strings.
Co-authored-by: Brent Christian <brent.christian@oracle.com>
Co-authored-by: Vivek Deshpande <vivek.r.deshpande@intel.com>
Co-authored-by: Charlie Hunt <charlie.hunt@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Co-authored-by: Xueming Shen <xueming.shen@oracle.com>
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Co-authored-by: Sandhya Viswanathan <sandhya.viswanathan@intel.com>
Reviewed-by: alanb, bdelsart, coleenp, iklam, jiangli, jrose, kevinw, naoto, pliden, roland, smarks, twisti
2015-11-03 09:41:03 +01:00
|
|
|
define_pd_global(bool, CompactStrings, true);
|
|
|
|
|
2016-03-04 01:30:11 +03:00
|
|
|
define_pd_global(intx, InitArrayShortSize, 8*BytesPerLong);
|
|
|
|
|
2016-05-10 12:10:21 -05:00
|
|
|
#define ARCH_FLAGS(develop, \
|
|
|
|
product, \
|
|
|
|
diagnostic, \
|
|
|
|
experimental, \
|
|
|
|
notproduct, \
|
|
|
|
range, \
|
|
|
|
constraint, \
|
|
|
|
writeable) \
|
2012-08-27 15:17:17 -07:00
|
|
|
\
|
|
|
|
product(intx, UseVIS, 99, \
|
|
|
|
"Highest supported VIS instructions set on Sparc") \
|
2015-10-09 14:21:26 +02:00
|
|
|
range(0, 99) \
|
2012-08-27 15:17:17 -07:00
|
|
|
\
|
|
|
|
product(bool, UseCBCond, false, \
|
|
|
|
"Use compare and branch instruction on SPARC") \
|
|
|
|
\
|
|
|
|
product(bool, UseBlockZeroing, false, \
|
|
|
|
"Use special cpu instructions for block zeroing") \
|
|
|
|
\
|
|
|
|
product(intx, BlockZeroingLowLimit, 2048, \
|
|
|
|
"Minimum size in bytes when block zeroing will be used") \
|
2015-10-09 14:21:26 +02:00
|
|
|
range(1, max_jint) \
|
2012-08-27 15:17:17 -07:00
|
|
|
\
|
|
|
|
product(bool, UseBlockCopy, false, \
|
|
|
|
"Use special cpu instructions for block copy") \
|
|
|
|
\
|
|
|
|
product(intx, BlockCopyLowLimit, 2048, \
|
|
|
|
"Minimum size in bytes when block copy will be used") \
|
2015-10-09 14:21:26 +02:00
|
|
|
range(1, max_jint) \
|
2012-08-27 15:17:17 -07:00
|
|
|
\
|
|
|
|
develop(bool, UseV8InstrsOnly, false, \
|
|
|
|
"Use SPARC-V8 Compliant instruction subset") \
|
|
|
|
\
|
|
|
|
product(bool, UseNiagaraInstrs, false, \
|
|
|
|
"Use Niagara-efficient instruction subset") \
|
|
|
|
\
|
|
|
|
develop(bool, UseCASForSwap, false, \
|
|
|
|
"Do not use swap instructions, but only CAS (in a loop) on SPARC")\
|
|
|
|
\
|
|
|
|
product(uintx, ArraycopySrcPrefetchDistance, 0, \
|
2015-10-09 14:21:26 +02:00
|
|
|
"Distance to prefetch source array in arraycopy") \
|
|
|
|
constraint(ArraycopySrcPrefetchDistanceConstraintFunc, AfterErgo) \
|
2012-08-27 15:17:17 -07:00
|
|
|
\
|
|
|
|
product(uintx, ArraycopyDstPrefetchDistance, 0, \
|
2015-10-09 14:21:26 +02:00
|
|
|
"Distance to prefetch destination array in arraycopy") \
|
|
|
|
constraint(ArraycopyDstPrefetchDistanceConstraintFunc, AfterErgo) \
|
2012-08-27 15:17:17 -07:00
|
|
|
|
2010-11-23 13:22:55 -08:00
|
|
|
#endif // CPU_SPARC_VM_GLOBALS_SPARC_HPP
|