src/cpu/x86/vm/c2_globals_x86.hpp

changeset 435
a61af66fc99e
child 1499
473cce303f13
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/cpu/x86/vm/c2_globals_x86.hpp	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,104 @@
     1.4 +/*
     1.5 + * Copyright 2000-2007 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 server compiler.
    1.30 +// (see c2_globals.hpp).  Alpha-sorted.
    1.31 +
    1.32 +define_pd_global(bool, BackgroundCompilation,        true);
    1.33 +define_pd_global(bool, UseTLAB,                      true);
    1.34 +define_pd_global(bool, ResizeTLAB,                   true);
    1.35 +define_pd_global(bool, CICompileOSR,                 true);
    1.36 +define_pd_global(bool, InlineIntrinsics,             true);
    1.37 +define_pd_global(bool, PreferInterpreterNativeStubs, false);
    1.38 +define_pd_global(bool, ProfileTraps,                 true);
    1.39 +define_pd_global(bool, UseOnStackReplacement,        true);
    1.40 +#ifdef CC_INTERP
    1.41 +define_pd_global(bool, ProfileInterpreter,           false);
    1.42 +#else
    1.43 +define_pd_global(bool, ProfileInterpreter,           true);
    1.44 +#endif // CC_INTERP
    1.45 +define_pd_global(bool, TieredCompilation,            false);
    1.46 +#ifdef TIERED
    1.47 +define_pd_global(intx, CompileThreshold,             1000);
    1.48 +#else
    1.49 +define_pd_global(intx, CompileThreshold,             10000);
    1.50 +#endif // TIERED
    1.51 +define_pd_global(intx, Tier2CompileThreshold,        10000);
    1.52 +define_pd_global(intx, Tier3CompileThreshold,        20000 );
    1.53 +define_pd_global(intx, Tier4CompileThreshold,        40000 );
    1.54 +
    1.55 +define_pd_global(intx, BackEdgeThreshold,            100000);
    1.56 +define_pd_global(intx, Tier2BackEdgeThreshold,       100000);
    1.57 +define_pd_global(intx, Tier3BackEdgeThreshold,       100000);
    1.58 +define_pd_global(intx, Tier4BackEdgeThreshold,       100000);
    1.59 +
    1.60 +define_pd_global(intx, OnStackReplacePercentage,     140);
    1.61 +define_pd_global(intx, ConditionalMoveLimit,         3);
    1.62 +define_pd_global(intx, FLOATPRESSURE,                6);
    1.63 +define_pd_global(intx, FreqInlineSize,               325);
    1.64 +#ifdef AMD64
    1.65 +define_pd_global(intx, INTPRESSURE,                  13);
    1.66 +define_pd_global(intx, InteriorEntryAlignment,       16);
    1.67 +define_pd_global(intx, NewRatio,                     2);
    1.68 +define_pd_global(intx, NewSizeThreadIncrease, ScaleForWordSize(4*K));
    1.69 +define_pd_global(intx, LoopUnrollLimit,              60);
    1.70 +// InitialCodeCacheSize derived from specjbb2000 run.
    1.71 +define_pd_global(intx, InitialCodeCacheSize,         2496*K); // Integral multiple of CodeCacheExpansionSize
    1.72 +define_pd_global(intx, CodeCacheExpansionSize,       64*K);
    1.73 +
    1.74 +// Ergonomics related flags
    1.75 +define_pd_global(uintx, DefaultMaxRAM, 32*G);
    1.76 +#else
    1.77 +define_pd_global(intx, INTPRESSURE,                  6);
    1.78 +define_pd_global(intx, InteriorEntryAlignment,       4);
    1.79 +define_pd_global(intx, NewRatio,                     8); // Design center runs on 1.3.1
    1.80 +define_pd_global(intx, NewSizeThreadIncrease,        4*K);
    1.81 +define_pd_global(intx, LoopUnrollLimit,              50); // Design center runs on 1.3.1
    1.82 +// InitialCodeCacheSize derived from specjbb2000 run.
    1.83 +define_pd_global(intx, InitialCodeCacheSize,         2304*K); // Integral multiple of CodeCacheExpansionSize
    1.84 +define_pd_global(intx, CodeCacheExpansionSize,       32*K);
    1.85 +
    1.86 +// Ergonomics related flags
    1.87 +define_pd_global(uintx, DefaultMaxRAM, 1*G);
    1.88 +#endif // AMD64
    1.89 +define_pd_global(intx, OptoLoopAlignment,            16);
    1.90 +define_pd_global(intx, RegisterCostAreaRatio,        16000);
    1.91 +
    1.92 +// Peephole and CISC spilling both break the graph, and so makes the
    1.93 +// scheduler sick.
    1.94 +define_pd_global(bool, OptoPeephole,                 true);
    1.95 +define_pd_global(bool, UseCISCSpill,                 true);
    1.96 +define_pd_global(bool, OptoScheduling,               false);
    1.97 +define_pd_global(bool, OptoBundling,                 false);
    1.98 +
    1.99 +define_pd_global(intx, ReservedCodeCacheSize,        48*M);
   1.100 +define_pd_global(uintx,CodeCacheMinBlockLength,      4);
   1.101 +
   1.102 +// Heap related flags
   1.103 +define_pd_global(uintx, PermSize,    ScaleForWordSize(16*M));
   1.104 +define_pd_global(uintx, MaxPermSize, ScaleForWordSize(64*M));
   1.105 +
   1.106 +// Ergonomics related flags
   1.107 +define_pd_global(bool, NeverActAsServerClassMachine, false);

mercurial