changeset 46618 | d503911aa948 |
parent 37495 | 7ef1f23dfc9c |
child 46619 | a3919f5e8d2b |
--- a/hotspot/src/share/vm/gc/shared/space.hpp Wed Apr 12 13:05:59 2017 +0200 +++ b/hotspot/src/share/vm/gc/shared/space.hpp Wed Apr 12 17:53:18 2017 +0200 @@ -154,7 +154,7 @@ // Test whether p is double-aligned static bool is_aligned(void* p) { - return ((intptr_t)p & (sizeof(double)-1)) == 0; + return is_ptr_aligned(p, sizeof(double)); } // Size computations. Sizes are in bytes.