globals_zero.hpp revision 8569:5bbf25472731
1142662Sphantom/* 2142662Sphantom * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. 3142662Sphantom * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. 4142662Sphantom * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5142662Sphantom * 6142662Sphantom * This code is free software; you can redistribute it and/or modify it 7142662Sphantom * under the terms of the GNU General Public License version 2 only, as 8142662Sphantom * published by the Free Software Foundation. 9142662Sphantom * 10142662Sphantom * This code is distributed in the hope that it will be useful, but WITHOUT 11142662Sphantom * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12142662Sphantom * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13142662Sphantom * version 2 for more details (a copy is included in the LICENSE file that 14142662Sphantom * accompanied this code). 15142662Sphantom * 16142662Sphantom * You should have received a copy of the GNU General Public License version 17142662Sphantom * 2 along with this work; if not, write to the Free Software Foundation, 18142662Sphantom * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19142662Sphantom * 20142662Sphantom * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21142662Sphantom * or visit www.oracle.com if you need additional information or have any 22142662Sphantom * questions. 23142662Sphantom * 24142662Sphantom */ 25142662Sphantom 26142662Sphantom#ifndef CPU_ZERO_VM_GLOBALS_ZERO_HPP 27142662Sphantom#define CPU_ZERO_VM_GLOBALS_ZERO_HPP 28142662Sphantom 29142662Sphantom#include "utilities/globalDefinitions.hpp" 30142662Sphantom#include "utilities/macros.hpp" 31142662Sphantom 32142662Sphantom// Set the default values for platform dependent flags used by the 33142662Sphantom// runtime system. See globals.hpp for details of what they do. 34142662Sphantom 35142662Sphantomdefine_pd_global(bool, ConvertSleepToYield, true); 36142662Sphantomdefine_pd_global(bool, ShareVtableStubs, true); 37142662Sphantomdefine_pd_global(bool, CountInterpCalls, true); 38142662Sphantomdefine_pd_global(bool, NeedsDeoptSuspend, false); 39142662Sphantom 40142662Sphantomdefine_pd_global(bool, ImplicitNullChecks, true); 41142662Sphantomdefine_pd_global(bool, TrapBasedNullChecks, false); 427496Sjkhdefine_pd_global(bool, UncommonNullCast, true); 437496Sjkh 447496Sjkhdefine_pd_global(intx, CodeEntryAlignment, 32); 457496Sjkhdefine_pd_global(intx, OptoLoopAlignment, 16); 467496Sjkhdefine_pd_global(intx, InlineFrequencyCount, 100); 477496Sjkhdefine_pd_global(intx, InlineSmallCode, 1000 ); 487496Sjkhdefine_pd_global(intx, PreInflateSpin, 10); 497496Sjkh 507496Sjkhdefine_pd_global(intx, StackYellowPages, 2); 517496Sjkhdefine_pd_global(intx, StackRedPages, 1); 527496Sjkhdefine_pd_global(intx, StackShadowPages, 5 LP64_ONLY(+1) DEBUG_ONLY(+3)); 537496Sjkh 547496Sjkhdefine_pd_global(bool, RewriteBytecodes, true); 557496Sjkhdefine_pd_global(bool, RewriteFrequentPairs, true); 567496Sjkh 577496Sjkhdefine_pd_global(bool, UseMembar, true); 587496Sjkh 597496Sjkh// GC Ergo Flags 607496Sjkhdefine_pd_global(size_t, CMSYoungGenPerWorker, 16*M); // default max size of CMS young gen, per GC worker thread 617496Sjkh 627496Sjkhdefine_pd_global(uintx, TypeProfileLevel, 0); 637496Sjkh 647496Sjkhdefine_pd_global(bool, PreserveFramePointer, false); 657496Sjkh 667496Sjkh#define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct, range, constraint) \ 677496Sjkh \ 687496Sjkh product(bool, UseFastEmptyMethods, true, \ 697496Sjkh "Use fast method entry code for empty methods") \ 707496Sjkh \ 718874Srgrimes product(bool, UseFastAccessorMethods, true, \ 727496Sjkh "Use fast method entry code for accessor methods") \ 737496Sjkh \ 7493218Scharnier 7593218Scharnier#endif // CPU_ZERO_VM_GLOBALS_ZERO_HPP 7693218Scharnier