Skip to content

Commit 2ed0334

Browse files
committed
Add memory barrier patch
1 parent 5d06bd1 commit 2ed0334

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build/barrier.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff -r b09e56145e11 src/hotspot/os_cpu/linux_arm/orderAccess_linux_arm.inline.hpp
2+
--- a/src/hotspot/os_cpu/linux_arm/orderAccess_linux_arm.inline.hpp Thu Mar 08 04:23:31 2018 +0000
3+
+++ b/src/hotspot/os_cpu/linux_arm/orderAccess_linux_arm.inline.hpp Tue Mar 27 22:40:37 2018 +0200
4+
@@ -71,7 +71,7 @@
5+
__asm__ volatile (
6+
".word 0xF57FF050 | 0xf" : : : "memory");
7+
#endif
8+
- } else {
9+
+ } else if (VM_Version::arm_arch() == 6) {
10+
intptr_t zero = 0;
11+
__asm__ volatile (
12+
"mcr p15, 0, %0, c7, c10, 5"
13+
@@ -95,7 +95,7 @@
14+
__asm__ volatile (
15+
".word 0xF57FF050 | 0xe" : : : "memory");
16+
#endif
17+
- } else {
18+
+ } else if (VM_Version::arm_arch() == 6) {
19+
intptr_t zero = 0;
20+
__asm__ volatile (
21+
"mcr p15, 0, %0, c7, c10, 5"

0 commit comments

Comments
 (0)