Integrated: 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.

This pull request has now been integrated.

Changeset: 2e3bdec9
Author:    Yudi Zheng <yzheng at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2e3bdec9857c64b307737ac7afed58170125cca9
Stats:     4 lines in 1 file changed: 4 ins; 0 del; 0 mod

8358686: CDS and AOT can cause buffer truncation warning even when logging is disabled

Reviewed-by: dnsimon, iklam

-------------

PR: https://git.openjdk.org/jdk/pull/25866


More information about the hotspot-runtime-dev mailing list