src/share/vm/memory/sharedHeap.cpp

Print this page
rev 4323 : 8010121: Simplify ShouldNotReachHere/Fatal/ShouldNotReachHere2/others?
Summary: Removed ShouldNotReachHere2(msg) and replaced it by fatal(msg)
Reviewed-by:
Contributed-by: niclas.adlertz@oracle.com

@@ -176,11 +176,11 @@
       ClassLoaderDataGraph::oops_do(roots, klass_closure, !is_scavenging);
     } else if (so & SO_SystemClasses) {
       SystemDictionary::always_strong_oops_do(roots);
       ClassLoaderDataGraph::always_strong_oops_do(roots, klass_closure, !is_scavenging);
     } else {
-      ShouldNotReachHere2("We should always have selected either SO_AllClasses or SO_SystemClasses");
+      fatal("We should always have selected either SO_AllClasses or SO_SystemClasses");
     }
   }
 
   if (!_process_strong_tasks->is_task_claimed(SH_PS_StringTable_oops_do)) {
     if (so & SO_Strings) {