Blame SOURCES/jdk8197981-pr3548-missing_return_statement_in_sync_val_compare_and_swap_8.patch

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