equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2014, Red Hat Inc. All rights reserved. |
3 * Copyright (c) 2014, Red Hat Inc. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
21 * or visit www.oracle.com if you need additional information or have any |
21 * or visit www.oracle.com if you need additional information or have any |
22 * questions. |
22 * questions. |
23 * |
23 * |
24 */ |
24 */ |
25 |
25 |
26 #ifndef OS_CPU_LINUX_AARCH64_VM_ATOMIC_LINUX_AARCH64_HPP |
26 #ifndef OS_CPU_LINUX_AARCH64_ATOMIC_LINUX_AARCH64_HPP |
27 #define OS_CPU_LINUX_AARCH64_VM_ATOMIC_LINUX_AARCH64_HPP |
27 #define OS_CPU_LINUX_AARCH64_ATOMIC_LINUX_AARCH64_HPP |
28 |
28 |
29 #include "vm_version_aarch64.hpp" |
29 #include "vm_version_aarch64.hpp" |
30 |
30 |
31 // Implementation of class atomic |
31 // Implementation of class atomic |
32 |
32 |
70 } else { |
70 } else { |
71 return __sync_val_compare_and_swap(dest, compare_value, exchange_value); |
71 return __sync_val_compare_and_swap(dest, compare_value, exchange_value); |
72 } |
72 } |
73 } |
73 } |
74 |
74 |
75 #endif // OS_CPU_LINUX_AARCH64_VM_ATOMIC_LINUX_AARCH64_HPP |
75 #endif // OS_CPU_LINUX_AARCH64_ATOMIC_LINUX_AARCH64_HPP |