globals_sparc.hpp revision 1788
0N/A/*
1472N/A * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
0N/A// Sets the default values for platform dependent flags used by the runtime system.
0N/A// (see globals.hpp)
0N/A
0N/A// For sparc we do not do call backs when a thread is in the interpreter, because the
0N/A// interpreter dispatch needs at least two instructions - first to load the dispatch address
0N/A// in a register, and second to jmp. The swapping of the dispatch table may occur _after_
0N/A// the load of the dispatch address and hence the jmp would still go to the location
0N/A// according to the prior table. So, we let the thread continue and let it block by itself.
0N/Adefine_pd_global(bool, DontYieldALot, true); // yield no more than 100 times per second
0N/Adefine_pd_global(bool, ConvertSleepToYield, false); // do not convert sleep(0) to yield. Helps GUI
0N/Adefine_pd_global(bool, ShareVtableStubs, false); // improves performance markedly for mtrt and compress
0N/Adefine_pd_global(bool, CountInterpCalls, false); // not implemented in the interpreter
0N/Adefine_pd_global(bool, NeedsDeoptSuspend, true); // register window machines need this
0N/A
0N/Adefine_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks
0N/Adefine_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs past to check cast
0N/A
1064N/Adefine_pd_global(intx, CodeEntryAlignment, 32);
1365N/A// The default setting 16/16 seems to work best.
1365N/A// (For _228_jack 16/16 is 2% better than 4/4, 16/4, 32/32, 32/16, or 16/32.)
1365N/Adefine_pd_global(intx, OptoLoopAlignment, 16); // = 4*wordSize
1064N/Adefine_pd_global(intx, InlineFrequencyCount, 50); // we can use more inlining on the SPARC
1064N/Adefine_pd_global(intx, InlineSmallCode, 1500);
0N/A#ifdef _LP64
0N/A// Stack slots are 2X larger in LP64 than in the 32 bit VM.
1064N/Adefine_pd_global(intx, ThreadStackSize, 1024);
1064N/Adefine_pd_global(intx, VMThreadStackSize, 1024);
0N/A#else
1064N/Adefine_pd_global(intx, ThreadStackSize, 512);
1064N/Adefine_pd_global(intx, VMThreadStackSize, 512);
0N/A#endif
0N/A
0N/Adefine_pd_global(intx, StackYellowPages, 2);
0N/Adefine_pd_global(intx, StackRedPages, 1);
0N/Adefine_pd_global(intx, StackShadowPages, 3 DEBUG_ONLY(+1));
0N/A
1064N/Adefine_pd_global(intx, PreInflateSpin, 40); // Determined by running design center
0N/A
0N/Adefine_pd_global(bool, RewriteBytecodes, true);
0N/Adefine_pd_global(bool, RewriteFrequentPairs, true);
1788N/A
1788N/Adefine_pd_global(bool, UseMembar, false);