RFR: 8358686: CDS and AOT can cause buffer truncation warning even when logging is disabled
Yudi Zheng
yzheng at openjdk.org
Thu Jun 19 15:52:34 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.
Thanks for the reviews! Passed tier1-3
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25866#issuecomment-2987088457
More information about the hotspot-runtime-dev
mailing list