--- a/hotspot/src/cpu/x86/vm/bytes_x86.hpp Wed Apr 12 17:53:18 2017 +0200
+++ b/hotspot/src/cpu/x86/vm/bytes_x86.hpp Tue Jul 04 15:58:10 2017 +0200
@@ -43,7 +43,7 @@
T x;
- if (is_ptr_aligned(p, sizeof(T))) {
+ if (is_aligned(p, sizeof(T))) {
x = *(T*)p;
} else {
memcpy(&x, p, sizeof(T));
@@ -56,7 +56,7 @@
static inline void put_native(void* p, T x) {
assert(p != NULL, "null pointer");
- if (is_ptr_aligned(p, sizeof(T))) {
+ if (is_aligned(p, sizeof(T))) {
*(T*)p = x;
} else {
memcpy(p, &x, sizeof(T));