Open sendaoYan opened 5 months ago
8204301: Make OrderAccess functions available to hpp rather than inline.hpp files
git mv hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.hpp hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
diff --git a/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp b/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
index 5b5d35553f7..2caec2d95e3 100644
--- a/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
+++ b/hotspot/src/os_cpu/linux_riscv/vm/orderAccess_linux_riscv.inline.hpp
@@ -23,11 +23,12 @@
*
*/
-#ifndef OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_HPP
-#define OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_HPP
-
-// Included in orderAccess.hpp header file.
+#ifndef OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_INLINE_HPP
+#define OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_INLINE_HPP
+#include "runtime/atomic.hpp"
+#include "runtime/orderAccess.hpp"
+#include "runtime/os.hpp"
#include "runtime/vm_version.hpp"
// Implementation of class OrderAccess.
@@ -71,4 +72,4 @@ struct OrderAccess::PlatformOrderedStore<byte_size, RELEASE_X_FENCE>
void operator()(T v, volatile T* p) const { release_store(p, v); OrderAccess::fence(); }
};
-#endif // OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_HPP
+#endif // OS_CPU_LINUX_RISCV_ORDERACCESS_LINUX_RISCV_INLINE_HPP
8233787: Break cycle in vm_version* includes
To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 0a16b6efc42..bedb955e8af minus-jbs8276799 -> minus-jbs8276799
build-precompiled.log make-riscv64.log