--- 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) {