git: openjdk/jdk: 8268165: AsyncLogging will crash if rotate() fails
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Tue Jun 8 07:20:50 UTC 2021
Changeset: 81054789
Author: Xin Liu <xliu at openjdk.org>
Committer: Yasumasa Suenaga <ysuenaga at openjdk.org>
Date: 2021-06-08 07:20:13 +0000
URL: https://git.openjdk.java.net/jdk/commit/81054789a32f29b06f0804e09aabd7cf17464778
8268165: AsyncLogging will crash if rotate() fails
LogFileOutput::rotate() may leave _stream NULL because os::fopen() may return NULL due to space or inode limitations. AsyncLogWriter::write() calls LogFileOutput::write_blocking() without null check. Null check is added to prevent from crashing.
Reviewed-by: ysuenaga
! src/hotspot/share/logging/logFileOutput.cpp
More information about the jdk-changes
mailing list