hotspot/src/cpu/x86/vm/globals_x86.hpp
changeset 33230 23bb11a5cf4e
parent 33163 9e128b399e48
parent 33222 e0a340f4ab6e
child 33628 09241459a8b8
equal deleted inserted replaced
33199:ba60c42fa77b 33230:23bb11a5cf4e
    53 #endif // COMPILER2
    53 #endif // COMPILER2
    54 define_pd_global(intx, OptoLoopAlignment,        16);
    54 define_pd_global(intx, OptoLoopAlignment,        16);
    55 define_pd_global(intx, InlineFrequencyCount,     100);
    55 define_pd_global(intx, InlineFrequencyCount,     100);
    56 define_pd_global(intx, InlineSmallCode,          1000);
    56 define_pd_global(intx, InlineSmallCode,          1000);
    57 
    57 
    58 define_pd_global(intx, StackYellowPages, NOT_WINDOWS(2) WINDOWS_ONLY(3));
    58 #define DEFAULT_STACK_YELLOW_PAGES (NOT_WINDOWS(2) WINDOWS_ONLY(3))
    59 define_pd_global(intx, StackRedPages, 1);
    59 #define DEFAULT_STACK_RED_PAGES (1)
       
    60 
       
    61 #define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES
       
    62 #define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES
       
    63 
    60 #ifdef AMD64
    64 #ifdef AMD64
    61 // Very large C++ stack frames using solaris-amd64 optimized builds
    65 // Very large C++ stack frames using solaris-amd64 optimized builds
    62 // due to lack of optimization caused by C++ compiler bugs
    66 // due to lack of optimization caused by C++ compiler bugs
    63 define_pd_global(intx, StackShadowPages, NOT_WIN64(20) WIN64_ONLY(6) DEBUG_ONLY(+2));
    67 #define DEFAULT_STACK_SHADOW_PAGES (NOT_WIN64(20) WIN64_ONLY(6) DEBUG_ONLY(+2))
       
    68 // For those clients that do not use write socket, we allow
       
    69 // the min range value to be below that of the default
       
    70 #define MIN_STACK_SHADOW_PAGES (NOT_WIN64(10) WIN64_ONLY(6) DEBUG_ONLY(+2))
    64 #else
    71 #else
    65 define_pd_global(intx, StackShadowPages, 4 DEBUG_ONLY(+5));
    72 #define DEFAULT_STACK_SHADOW_PAGES (4 DEBUG_ONLY(+5))
       
    73 #define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES
    66 #endif // AMD64
    74 #endif // AMD64
       
    75 
       
    76 define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);
       
    77 define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);
       
    78 define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);
    67 
    79 
    68 define_pd_global(bool, RewriteBytecodes,     true);
    80 define_pd_global(bool, RewriteBytecodes,     true);
    69 define_pd_global(bool, RewriteFrequentPairs, true);
    81 define_pd_global(bool, RewriteFrequentPairs, true);
    70 
    82 
    71 #ifdef _ALLBSD_SOURCE
    83 #ifdef _ALLBSD_SOURCE
   133   product(bool, UseRTMDeopt, false,                                         \
   145   product(bool, UseRTMDeopt, false,                                         \
   134           "Perform deopt and recompilation based on RTM abort ratio")       \
   146           "Perform deopt and recompilation based on RTM abort ratio")       \
   135                                                                             \
   147                                                                             \
   136   product(uintx, RTMRetryCount, 5,                                          \
   148   product(uintx, RTMRetryCount, 5,                                          \
   137           "Number of RTM retries on lock abort or busy")                    \
   149           "Number of RTM retries on lock abort or busy")                    \
       
   150           range(0, max_uintx)                                               \
   138                                                                             \
   151                                                                             \
   139   experimental(intx, RTMSpinLoopCount, 100,                                 \
   152   experimental(intx, RTMSpinLoopCount, 100,                                 \
   140           "Spin count for lock to become free before RTM retry")            \
   153           "Spin count for lock to become free before RTM retry")            \
   141                                                                             \
   154                                                                             \
   142   experimental(intx, RTMAbortThreshold, 1000,                               \
   155   experimental(intx, RTMAbortThreshold, 1000,                               \