Integrated: 8364128: Improve gathering of cpu feature names using stringStream

Ashutosh Mehra asmehra at openjdk.org
Thu Aug 7 13:29:22 UTC 2025


On Mon, 28 Jul 2025 18:16:16 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

> This PR implements the code for cpu features names string using ~FormatBuffer~ stringStream. ~It also improves and extends FormatBuffer with an additional method that appends comma separated strings to the buffer.~ It also adds a method to stringStream that that appends separated strings separated by a delimiter to the buffer.  This is useful in creating the cpu features names string.
> This code will also be useful in Leyden to implement cpu feature check for AOTCodeCache [0].
> Platforms affected: x86-64 and aarch64
> Other platforms can be done if and when Leyden changes are ported to them.
> 
> [0] https://github.com/openjdk/leyden/pull/84

This pull request has now been integrated.

Changeset: bc3d8656
Author:    Ashutosh Mehra <asmehra at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bc3d86564042208cee5119abe11905e747a5ef4c
Stats:     155 lines in 9 files changed: 66 ins; 25 del; 64 mod

8364128: Improve gathering of cpu feature names using stringStream

Co-authored-by: Johan Sjölen <jsjolen at openjdk.org>
Reviewed-by: kvn, jsjolen

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

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


More information about the hotspot-dev mailing list