1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Fri Aug 17 15:41:04 2012 -0700 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp Tue Aug 21 10:05:57 2012 -0700 1.3 @@ -1934,6 +1934,14 @@ 1.4 clear_cset_start_regions(); 1.5 1.6 guarantee(_task_queues != NULL, "task_queues allocation failure."); 1.7 +#ifdef SPARC 1.8 + // Issue a stern warning, but allow use for experimentation and debugging. 1.9 + if (VM_Version::is_sun4v() && UseMemSetInBOT) { 1.10 + assert(!FLAG_IS_DEFAULT(UseMemSetInBOT), "Error"); 1.11 + warning("Experimental flag -XX:+UseMemSetInBOT is known to cause instability" 1.12 + " on sun4v; please understand that you are using at your own risk!"); 1.13 + } 1.14 +#endif 1.15 } 1.16 1.17 jint G1CollectedHeap::initialize() {