hotspot/src/cpu/x86/vm/globals_x86.hpp
changeset 4434 4b41e5b42f81
parent 3261 c7d5aae8d3f7
child 5249 5cac34e6fe54
equal deleted inserted replaced
4090:3dd0ee516f2d 4434:4b41e5b42f81
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
    21  * have any questions.
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 //
       
    26 // Sets the default values for platform dependent flags used by the runtime system.
    25 // Sets the default values for platform dependent flags used by the runtime system.
    27 // (see globals.hpp)
    26 // (see globals.hpp)
    28 //
       
    29 
    27 
    30 define_pd_global(bool,  ConvertSleepToYield,      true);
    28 define_pd_global(bool, ConvertSleepToYield,      true);
    31 define_pd_global(bool,  ShareVtableStubs,         true);
    29 define_pd_global(bool, ShareVtableStubs,         true);
    32 define_pd_global(bool,  CountInterpCalls,         true);
    30 define_pd_global(bool, CountInterpCalls,         true);
       
    31 define_pd_global(bool, NeedsDeoptSuspend,        false); // only register window machines need this
    33 
    32 
    34 define_pd_global(bool, ImplicitNullChecks,          true);  // Generate code for implicit null checks
    33 define_pd_global(bool, ImplicitNullChecks,       true);  // Generate code for implicit null checks
    35 define_pd_global(bool, UncommonNullCast,            true);  // Uncommon-trap NULLs past to check cast
    34 define_pd_global(bool, UncommonNullCast,         true);  // Uncommon-trap NULLs past to check cast
    36 
    35 
    37 // See 4827828 for this change. There is no globals_core_i486.hpp. I can't
    36 // See 4827828 for this change. There is no globals_core_i486.hpp. I can't
    38 // assign a different value for C2 without touching a number of files. Use
    37 // assign a different value for C2 without touching a number of files. Use
    39 // #ifdef to minimize the change as it's late in Mantis. -- FIXME.
    38 // #ifdef to minimize the change as it's late in Mantis. -- FIXME.
    40 // c1 doesn't have this problem because the fix to 4858033 assures us
    39 // c1 doesn't have this problem because the fix to 4858033 assures us
    41 // the the vep is aligned at CodeEntryAlignment whereas c2 only aligns
    40 // the the vep is aligned at CodeEntryAlignment whereas c2 only aligns
    42 // the uep and the vep doesn't get real alignment but just slops on by
    41 // the uep and the vep doesn't get real alignment but just slops on by
    43 // only assured that the entry instruction meets the 5 byte size requirement.
    42 // only assured that the entry instruction meets the 5 byte size requirement.
    44 #ifdef COMPILER2
    43 #ifdef COMPILER2
    45 define_pd_global(intx,  CodeEntryAlignment,       32);
    44 define_pd_global(intx, CodeEntryAlignment,       32);
    46 #else
    45 #else
    47 define_pd_global(intx,  CodeEntryAlignment,       16);
    46 define_pd_global(intx, CodeEntryAlignment,       16);
    48 #endif // COMPILER2
    47 #endif // COMPILER2
       
    48 define_pd_global(intx, InlineFrequencyCount,     100);
       
    49 define_pd_global(intx, InlineSmallCode,          1000);
    49 
    50 
    50 define_pd_global(bool, NeedsDeoptSuspend,           false); // only register window machines need this
    51 define_pd_global(intx, StackYellowPages, 2);
    51 
    52 define_pd_global(intx, StackRedPages, 1);
    52 define_pd_global(uintx, TLABSize,                 0);
       
    53 #ifdef AMD64
    53 #ifdef AMD64
    54 define_pd_global(uintx, NewSize, ScaleForWordSize(2048 * K));
       
    55 // Very large C++ stack frames using solaris-amd64 optimized builds
    54 // Very large C++ stack frames using solaris-amd64 optimized builds
    56 // due to lack of optimization caused by C++ compiler bugs
    55 // due to lack of optimization caused by C++ compiler bugs
    57 define_pd_global(intx, StackShadowPages, SOLARIS_ONLY(20) NOT_SOLARIS(6) DEBUG_ONLY(+2));
    56 define_pd_global(intx, StackShadowPages, SOLARIS_ONLY(20) NOT_SOLARIS(6) DEBUG_ONLY(+2));
    58 #else
    57 #else
    59 define_pd_global(uintx, NewSize,                  1024 * K);
       
    60 define_pd_global(intx, StackShadowPages, 3 DEBUG_ONLY(+1));
    58 define_pd_global(intx, StackShadowPages, 3 DEBUG_ONLY(+1));
    61 #endif // AMD64
    59 #endif // AMD64
    62 define_pd_global(intx,  InlineFrequencyCount,     100);
       
    63 define_pd_global(intx,  InlineSmallCode,          1000);
       
    64 define_pd_global(intx,  PreInflateSpin,           10);
       
    65 
    60 
    66 define_pd_global(intx, StackYellowPages, 2);
    61 define_pd_global(intx, PreInflateSpin,           10);
    67 define_pd_global(intx, StackRedPages, 1);
       
    68 
    62 
    69 define_pd_global(bool, RewriteBytecodes,     true);
    63 define_pd_global(bool, RewriteBytecodes,     true);
    70 define_pd_global(bool, RewriteFrequentPairs, true);
    64 define_pd_global(bool, RewriteFrequentPairs, true);