# HG changeset patch # User mlarsson # Date 1519898177 -3600 # Thu Mar 01 10:56:17 2018 +0100 # Node ID b8b8887445c385450569a97ba4a4bc5bebd4f3aa # Parent 41e570d862b4997e1279830ed3ec6ddbb4092909 [mq]: 8198887 diff --git a/src/hotspot/share/logging/logOutput.cpp b/src/hotspot/share/logging/logOutput.cpp --- a/src/hotspot/share/logging/logOutput.cpp +++ b/src/hotspot/share/logging/logOutput.cpp @@ -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) {