RFR: 8358686: CDS and AOT can cause buffer truncation warning even when logging is disabled
Doug Simon
dnsimon at openjdk.org
Wed Jun 18 09:07:29 UTC 2025
On Wed, 18 Jun 2025 08:46:04 GMT, Yudi Zheng <yzheng at openjdk.org> wrote:
> When CDS and AOT loggings are disabled, HotSpot may still warn about `Mismatched values for property jdk.module.addexports:`. This warn message could be large and exceeds the current logging buffer length, and it leads to a non-informative message:
>
> Java HotSpot(TM) 64-Bit Server VM warning: outputStream::do_vsnprintf output truncated -- buffer length is 2000 bytes but 4276 bytes are needed.
>
> This PR skips reporting loading error when CDS and AOT loggings are disabled.
LGTM
-------------
Marked as reviewed by dnsimon (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25866#pullrequestreview-2938374154
More information about the hotspot-runtime-dev
mailing list