globals_x86.hpp revision 844:bd02caa94611
1161754Sru/* 288276Smarkm * Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved. 388276Smarkm * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 47527Sjkh * 57527Sjkh * This code is free software; you can redistribute it and/or modify it 67527Sjkh * under the terms of the GNU General Public License version 2 only, as 77527Sjkh * published by the Free Software Foundation. 87527Sjkh * 97527Sjkh * This code is distributed in the hope that it will be useful, but WITHOUT 107527Sjkh * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 117527Sjkh * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 127527Sjkh * version 2 for more details (a copy is included in the LICENSE file that 137527Sjkh * accompanied this code). 147527Sjkh * 157527Sjkh * You should have received a copy of the GNU General Public License version 16161754Sru * 2 along with this work; if not, write to the Free Software Foundation, 177527Sjkh * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 187527Sjkh * 197527Sjkh * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 207527Sjkh * CA 95054 USA or visit www.sun.com if you need additional information or 217527Sjkh * have any questions. 227527Sjkh * 237527Sjkh */ 247527Sjkh 257527Sjkh// 267527Sjkh// Sets the default values for platform dependent flags used by the runtime system. 277527Sjkh// (see globals.hpp) 287527Sjkh// 297527Sjkh 307527Sjkhdefine_pd_global(bool, ConvertSleepToYield, true); 317527Sjkhdefine_pd_global(bool, ShareVtableStubs, true); 327527Sjkhdefine_pd_global(bool, CountInterpCalls, true); 3388276Smarkm 3488276Smarkmdefine_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks 3588276Smarkmdefine_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs past to check cast 367527Sjkh 3728365Scharnier// See 4827828 for this change. There is no globals_core_i486.hpp. I can't 387527Sjkh// assign a different value for C2 without touching a number of files. Use 39161754Sru// #ifdef to minimize the change as it's late in Mantis. -- FIXME. 4028365Scharnier// c1 doesn't have this problem because the fix to 4858033 assures us 417527Sjkh// the the vep is aligned at CodeEntryAlignment whereas c2 only aligns 427527Sjkh// the uep and the vep doesn't get real alignment but just slops on by 437527Sjkh// only assured that the entry instruction meets the 5 byte size requirement. 447527Sjkh#ifdef COMPILER2 457527Sjkhdefine_pd_global(intx, CodeEntryAlignment, 32); 467527Sjkh#else 477527Sjkhdefine_pd_global(intx, CodeEntryAlignment, 16); 487527Sjkh#endif // COMPILER2 497527Sjkh 507527Sjkhdefine_pd_global(bool, NeedsDeoptSuspend, false); // only register window machines need this 517527Sjkh 527527Sjkhdefine_pd_global(uintx, TLABSize, 0); 537527Sjkh#ifdef AMD64 547527Sjkhdefine_pd_global(uintx, NewSize, ScaleForWordSize(2048 * K)); 557527Sjkh// Very large C++ stack frames using solaris-amd64 optimized builds 567527Sjkh// due to lack of optimization caused by C++ compiler bugs 577527Sjkhdefine_pd_global(intx, StackShadowPages, SOLARIS_ONLY(20) NOT_SOLARIS(6) DEBUG_ONLY(+2)); 587527Sjkh#else 597527Sjkhdefine_pd_global(uintx, NewSize, 1024 * K); 607527Sjkhdefine_pd_global(intx, StackShadowPages, 3 DEBUG_ONLY(+1)); 617527Sjkh#endif // AMD64 627527Sjkhdefine_pd_global(intx, InlineFrequencyCount, 100); 637527Sjkhdefine_pd_global(intx, InlineSmallCode, 1000); 647527Sjkhdefine_pd_global(intx, PreInflateSpin, 10); 657527Sjkh 667527Sjkhdefine_pd_global(intx, StackYellowPages, 2); 677527Sjkhdefine_pd_global(intx, StackRedPages, 1); 687527Sjkh 697527Sjkhdefine_pd_global(bool, RewriteBytecodes, true); 707527Sjkhdefine_pd_global(bool, RewriteFrequentPairs, true); 717527Sjkh