8010474: [parfait] Undefined return value of the functions in hotspot/src/share/vm/services/memTracker.hpp
authorzgu
Wed, 27 Mar 2013 15:41:53 -0400
changeset 16593 b7919ae9ec7d
parent 16443 dd0dcfac0c61
child 16594 e62fc49806d9
8010474: [parfait] Undefined return value of the functions in hotspot/src/share/vm/services/memTracker.hpp Summary: Fixed functions that miss return values Reviewed-by: coleenp, acorn, kvn
hotspot/src/share/vm/services/memTracker.hpp
--- a/hotspot/src/share/vm/services/memTracker.hpp	Mon Mar 25 09:36:15 2013 -0700
+++ b/hotspot/src/share/vm/services/memTracker.hpp	Wed Mar 27 15:41:53 2013 -0400
@@ -86,13 +86,13 @@
 
    static inline void set_autoShutdown(bool value) { }
    static void shutdown(ShutdownReason reason) { }
-   static inline bool shutdown_in_progress() {  }
+   static inline bool shutdown_in_progress() { return false; }
    static bool print_memory_usage(BaselineOutputer& out, size_t unit,
-            bool summary_only = true) { }
+            bool summary_only = true) { return false; }
    static bool compare_memory_usage(BaselineOutputer& out, size_t unit,
-            bool summary_only = true) { }
+            bool summary_only = true) { return false; }
 
-   static bool wbtest_wait_for_data_merge() { }
+   static bool wbtest_wait_for_data_merge() { return false; }
 
    static inline void sync() { }
    static inline void thread_exiting(JavaThread* thread) { }