--- old/src/share/vm/runtime/arguments.cpp 2012-09-12 15:42:45.222420603 -0700 +++ new/src/share/vm/runtime/arguments.cpp 2012-09-12 15:42:45.014028276 -0700 @@ -3257,6 +3257,19 @@ } } +#ifdef SPARC + if (UseConcMarkSweepGC || UseG1GC) { + // Issue a stern warning if the user has explicitly set + // UseMemSetInBOT (it is known to cause issues), but allow + // use for experimentation and debugging. + if (VM_Version::is_sun4v() && UseMemSetInBOT) { + assert(!FLAG_IS_DEFAULT(UseMemSetInBOT), "Error"); + warning("Experimental flag -XX:+UseMemSetInBOT is known to cause instability" + " on sun4v; please understand that you are using at your own risk!"); + } + } +#endif // SPARC + return JNI_OK; }