src/cpu/sparc/vm/globals_sparc.hpp

changeset 435
a61af66fc99e
child 1110
f6da6f0174ac
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/cpu/sparc/vm/globals_sparc.hpp	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,65 @@
     1.4 +/*
     1.5 + * Copyright 2000-2006 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.
    1.11 + *
    1.12 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 + * version 2 for more details (a copy is included in the LICENSE file that
    1.16 + * accompanied this code).
    1.17 + *
    1.18 + * You should have received a copy of the GNU General Public License version
    1.19 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.20 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 + *
    1.22 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.23 + * CA 95054 USA or visit www.sun.com if you need additional information or
    1.24 + * have any questions.
    1.25 + *
    1.26 + */
    1.27 +
    1.28 +//
    1.29 +// Sets the default values for platform dependent flags used by the runtime system.
    1.30 +// (see globals.hpp)
    1.31 +//
    1.32 +
    1.33 +// For sparc we do not do call backs when a thread is in the interpreter, because the
    1.34 +// interpreter dispatch needs at least two instructions - first to load the dispatch address
    1.35 +// in a register, and second to jmp. The swapping of the dispatch table may occur _after_
    1.36 +// the load of the dispatch address and hence the jmp would still go to the location
    1.37 +// according to the prior table. So, we let the thread continue and let it block by itself.
    1.38 +define_pd_global(bool, DontYieldALot,               true);  // yield no more than 100 times per second
    1.39 +define_pd_global(bool, ConvertSleepToYield,         false); // do not convert sleep(0) to yield. Helps GUI
    1.40 +define_pd_global(bool, ShareVtableStubs,            false); // improves performance markedly for mtrt and compress
    1.41 +define_pd_global(bool, CountInterpCalls,            false); // not implemented in the interpreter
    1.42 +define_pd_global(bool, NeedsDeoptSuspend,           true); // register window machines need this
    1.43 +
    1.44 +define_pd_global(bool, ImplicitNullChecks,          true);  // Generate code for implicit null checks
    1.45 +define_pd_global(bool, UncommonNullCast,            true);  // Uncommon-trap NULLs past to check cast
    1.46 +
    1.47 +define_pd_global(intx,  CodeEntryAlignment,    32);
    1.48 +define_pd_global(uintx, TLABSize,              0);
    1.49 +define_pd_global(uintx, NewSize, ScaleForWordSize((2048 * K) + (2 * (64 * K))));
    1.50 +define_pd_global(intx,  SurvivorRatio,         8);
    1.51 +define_pd_global(intx,  InlineFrequencyCount,  50);  // we can use more inlining on the SPARC
    1.52 +#ifdef _LP64
    1.53 +// Stack slots are 2X larger in LP64 than in the 32 bit VM.
    1.54 +define_pd_global(intx,  ThreadStackSize,       1024);
    1.55 +define_pd_global(intx,  VMThreadStackSize,     1024);
    1.56 +#else
    1.57 +define_pd_global(intx,  ThreadStackSize,       512);
    1.58 +define_pd_global(intx,  VMThreadStackSize,     512);
    1.59 +#endif
    1.60 +
    1.61 +define_pd_global(intx, StackYellowPages, 2);
    1.62 +define_pd_global(intx, StackRedPages, 1);
    1.63 +define_pd_global(intx, StackShadowPages, 3 DEBUG_ONLY(+1));
    1.64 +
    1.65 +define_pd_global(intx,  PreInflateSpin,        40);  // Determined by running design center
    1.66 +
    1.67 +define_pd_global(bool, RewriteBytecodes,     true);
    1.68 +define_pd_global(bool, RewriteFrequentPairs, true);

mercurial