diff -r ba60c42fa77b -r 23bb11a5cf4e hotspot/src/cpu/x86/vm/globals_x86.hpp --- a/hotspot/src/cpu/x86/vm/globals_x86.hpp Mon Oct 19 12:30:17 2015 -0700 +++ b/hotspot/src/cpu/x86/vm/globals_x86.hpp Tue Oct 20 11:17:19 2015 -0400 @@ -55,16 +55,28 @@ define_pd_global(intx, InlineFrequencyCount, 100); define_pd_global(intx, InlineSmallCode, 1000); -define_pd_global(intx, StackYellowPages, NOT_WINDOWS(2) WINDOWS_ONLY(3)); -define_pd_global(intx, StackRedPages, 1); +#define DEFAULT_STACK_YELLOW_PAGES (NOT_WINDOWS(2) WINDOWS_ONLY(3)) +#define DEFAULT_STACK_RED_PAGES (1) + +#define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES +#define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES + #ifdef AMD64 // Very large C++ stack frames using solaris-amd64 optimized builds // due to lack of optimization caused by C++ compiler bugs -define_pd_global(intx, StackShadowPages, NOT_WIN64(20) WIN64_ONLY(6) DEBUG_ONLY(+2)); +#define DEFAULT_STACK_SHADOW_PAGES (NOT_WIN64(20) WIN64_ONLY(6) DEBUG_ONLY(+2)) +// For those clients that do not use write socket, we allow +// the min range value to be below that of the default +#define MIN_STACK_SHADOW_PAGES (NOT_WIN64(10) WIN64_ONLY(6) DEBUG_ONLY(+2)) #else -define_pd_global(intx, StackShadowPages, 4 DEBUG_ONLY(+5)); +#define DEFAULT_STACK_SHADOW_PAGES (4 DEBUG_ONLY(+5)) +#define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES #endif // AMD64 +define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES); +define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES); +define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES); + define_pd_global(bool, RewriteBytecodes, true); define_pd_global(bool, RewriteFrequentPairs, true); @@ -135,6 +147,7 @@ \ product(uintx, RTMRetryCount, 5, \ "Number of RTM retries on lock abort or busy") \ + range(0, max_uintx) \ \ experimental(intx, RTMSpinLoopCount, 100, \ "Spin count for lock to become free before RTM retry") \