SUGGESTED FIX
--- a/src/share/vm/runtime/arguments.cpp Wed Sep 02 00:04:29 2009 -0700
+++ b/src/share/vm/runtime/arguments.cpp Tue Sep 08 11:08:18 2009 -0700
@@ -1582,9 +1582,15 @@ bool Arguments::check_vm_args_consistenc
// Either force sharing on by forcing the other options off, or
// force sharing off.
if (DumpSharedSpaces || ForceSharedSpaces) {
+ jio_fprintf(defaultStream::error_stream(),
+ "Reverting to Serial GC because of %s \n",
+ ForceSharedSpaces ? " -Xshare:on" : "-Xshare:dump");
set_serial_gc_flags();
FLAG_SET_DEFAULT(SOLARIS_ONLY(UseISM) NOT_SOLARIS(UseLargePages), false);
} else {
+ jio_fprintf(defaultStream::error_stream(),
+ "Turning off use of shared archive because of "
+ "choice of garbage collector or large pages \n");
no_shared_spaces();
}
}
@@ -1609,7 +1615,7 @@ bool Arguments::check_vm_args_consistenc
}
if (CMSIncrementalMode) {
- if (!UseConcMarkSweepGC) {
+ if (!(UseConcMarkSweepGC || DumpSharedSpaces || ForceSharedSpaces)) {
jio_fprintf(defaultStream::error_stream(),
"error: invalid argument combination.\n"
"The CMS collector (-XX:+UseConcMarkSweepGC) must be "
|