Blame SOURCES/8197981.patch

83442e
# HG changeset patch
83442e
# User andrew
83442e
# Date 1518667645 0
83442e
#      Thu Feb 15 04:07:25 2018 +0000
83442e
# Node ID ce3abb5889fb01808cab7489e83c1dc448743b70
83442e
# Parent  ad6e76e3c6a67082d22cadf07549b5dfdae2e4a5
83442e
8197981: Missing return statement in __sync_val_compare_and_swap_8
83442e
Summary: Fix issue discovered by -Wreturn-type on systems without LP64.
83442e
Reviewed-by: aph
83442e
83442e
diff --git a/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp b/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
83442e
--- openjdk/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
83442e
+++ openjdk/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
83442e
@@ -548,6 +548,7 @@
83442e
     long long unsigned int oldval,
83442e
     long long unsigned int newval) {
83442e
     ShouldNotCallThis();
83442e
+    return 0;
83442e
   }
83442e
 };
83442e
 #endif // !_LP64
83442e
diff --git a/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
83442e
--- openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
83442e
+++ openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
83442e
@@ -504,6 +504,7 @@
83442e
     long long unsigned int oldval,
83442e
     long long unsigned int newval) {
83442e
     ShouldNotCallThis();
83442e
+    return 0;
83442e
   }
83442e
 };
83442e
 #endif // !_LP64