OpenJDK / jdk / jdk
changeset 49190:c14c75375fa4
8198887: JDK-8168722 broke the build on macosx
Reviewed-by: dholmes, thartmann
author | mlarsson |
---|---|
date | Thu, 01 Mar 2018 10:56:17 +0100 |
parents | 41e570d862b4 |
children | 13378aa8527e |
files | src/hotspot/share/logging/logOutput.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {