Merge
authorrehn
Fri, 07 Jul 2017 23:53:36 +0200
changeset 46645 1a4335135ffd
parent 46644 a5813fb66270 (current diff)
parent 46642 ec1179442657 (diff)
child 46646 5165b3a5b44a
Merge
--- a/hotspot/src/share/vm/utilities/align.hpp	Fri Jul 07 23:11:33 2017 +0200
+++ b/hotspot/src/share/vm/utilities/align.hpp	Fri Jul 07 23:53:36 2017 +0200
@@ -44,7 +44,7 @@
 
 #define align_up_(size, alignment) (align_down_((size) + align_mask(alignment), (alignment)))
 
-#define is_aligned_(size, alignment) ((size) == (align_up_((size), (alignment))))
+#define is_aligned_(size, alignment) (((size) & align_mask(alignment)) == 0)
 
 // Temporary declaration until this file has been restructured.
 template <typename T>