changeset 46621:b93c4446e59e

8183544: Missing parentheses in is_size_aligned_ macro Reviewed-by: mgerdin, tschatzl
author stefank
date Tue, 04 Jul 2017 17:44:30 +0200
parents 750c6edff33b
children 910fc72c03e8
files hotspot/src/share/vm/utilities/globalDefinitions.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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>