RFC: 8347707: Standardise the use of os::snprintf and os::snprintf_checked

Kim Barrett kim.barrett at oracle.com
Fri Jul 25 03:02:37 UTC 2025


On 7/24/25 9:54 PM, David Holmes wrote:
> This is a proposal to standardize on the use of os::snprintf and os::snprintf_checked across the hotspot code base, and to disallow use of the C library variants. (It does not touch use of jio_printf at all.)
> 
> From: https://bugs.openjdk.org/browse/JDK-8347707
> 
> [...]
> 
> https://github.com/openjdk/jdk/pull/26470
> 
> Comments welcomed.

I approve of this plan.

(This plan is the result of extensive discussions between David and I,
so it would be very surprising to David if I didn't approve.)



More information about the hotspot-dev mailing list