8198887: JDK-8168722 broke the build on macosx
authormlarsson
Thu, 01 Mar 2018 10:56:17 +0100
changeset 49190 c14c75375fa4
parent 49189 41e570d862b4
child 49191 13378aa8527e
8198887: JDK-8168722 broke the build on macosx Reviewed-by: dholmes, thartmann
src/hotspot/share/logging/logOutput.cpp
--- a/src/hotspot/share/logging/logOutput.cpp	Thu Mar 01 08:58:27 2018 +0100
+++ b/src/hotspot/share/logging/logOutput.cpp	Thu Mar 01 10:56:17 2018 +0100
@@ -118,7 +118,7 @@
     // Make subset the first element in the result array initially
     subset = result[0];
   }
-  assert((void*) subset >= result && (void*) subset < result + sizeof(result),
+  assert((void*) subset >= &result[0] && (void*) subset <= &result[MaxSubsets - 1],
          "subset should always point to element in result");
 
   if (depth == LogTag::MaxTags || tags[depth] == LogTag::__NO_TAG) {