View | Details | Raw Unified | Return to bug 255326
Collapse All | Expand All

(-)java/openjdk8/files/patch-hotspot_src_os__cpu_bsd__zero_vm_os__bsd__zero.cpp (+24 lines)
Added Link Here
1
--- hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp.orig	2021-04-26 16:05:58 UTC
2
+++ hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
3
@@ -446,21 +446,6 @@ extern "C" {
4
   }
5
 };
6
 
7
-/////////////////////////////////////////////////////////////////////////////
8
-// Implementations of atomic operations not supported by processors.
9
-//  -- http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Atomic-Builtins.html
10
-
11
-#ifndef _LP64
12
-extern "C" {
13
-  long long unsigned int __sync_val_compare_and_swap_8(
14
-    volatile void *ptr,
15
-    long long unsigned int oldval,
16
-    long long unsigned int newval) {
17
-    ShouldNotCallThis();
18
-    return 0; // silence compiler warnings
19
-  }
20
-};
21
-#endif // !_LP64
22
 
23
 #ifndef PRODUCT
24
 void os::verify_stack_alignment() {
(-)java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__perf__bsd.cpp (+18 lines)
Added Link Here
1
--- hotspot/src/os/bsd/vm/os_perf_bsd.cpp.orig	2021-04-26 16:00:48 UTC
2
+++ hotspot/src/os/bsd/vm/os_perf_bsd.cpp
3
@@ -43,6 +43,15 @@
4
   #include <mach/task_info.h>
5
 #else
6
   #ifndef __NetBSD__
7
+    #ifdef __FreeBSD__
8
+      /*
9
+       * Older versions of FreeBSD accidentally include machine/frame.h from
10
+       * sys/user.h header. Disable this bad behavior, because a
11
+       * 'non-standard' structure 'frame' conflict with an internal structure
12
+       * with the same name.
13
+       */
14
+      #define _MACHINE_PCB_H_
15
+    #endif
16
     #include <sys/user.h>
17
   #endif
18
   #include <sys/sched.h>

Return to bug 255326