diff src/share/vm/runtime/safepoint.cpp @ 23822:626f594dffa6

8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux. Reviewed-by: stuefe, coleenp, roland
author csahu
date Tue, 01 Mar 2016 12:50:37 +0530
parents 5d96c022391c
children f13e777eb255
line wrap: on
line diff
--- a/src/share/vm/runtime/safepoint.cpp	Thu Feb 18 16:15:28 2016 +0100
+++ b/src/share/vm/runtime/safepoint.cpp	Tue Mar 01 12:50:37 2016 +0530
@@ -142,7 +142,7 @@
 
   // Save the starting time, so that it can be compared to see if this has taken
   // too long to complete.
-  jlong safepoint_limit_time;
+  jlong safepoint_limit_time = 0;
   timeout_error_printed = false;
 
   // PrintSafepointStatisticsTimeout can be specified separately. When
@@ -925,7 +925,7 @@
 
 
 void ThreadSafepointState::print_on(outputStream *st) const {
-  const char *s;
+  const char *s = NULL;
 
   switch(_type) {
     case _running                : s = "_running";              break;