8183544: Missing parentheses in is_size_aligned_ macro
authorstefank
Tue, 04 Jul 2017 17:44:30 +0200
changeset 46621 b93c4446e59e
parent 46620 750c6edff33b
child 46622 910fc72c03e8
8183544: Missing parentheses in is_size_aligned_ macro Reviewed-by: mgerdin, tschatzl
hotspot/src/share/vm/utilities/globalDefinitions.hpp
--- a/hotspot/src/share/vm/utilities/globalDefinitions.hpp	Thu Apr 13 09:57:51 2017 +0200
+++ b/hotspot/src/share/vm/utilities/globalDefinitions.hpp	Tue Jul 04 17:44:30 2017 +0200
@@ -518,7 +518,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_up_((size), (alignment))))
 
 // Temporary declaration until this file has been restructured.
 template <typename T>