RFR: 8347566: Replace SSIZE_FORMAT with 'z' length modifier

Dean Long dlong at openjdk.org
Mon Jan 13 19:35:43 UTC 2025


On Mon, 13 Jan 2025 18:47:35 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Please review this change that replaces SSIZE_FORMAT with %zd.
> Tested with tier1 on Oracle supported platforms (and here with GHA).

src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp line 160:

> 158:   uintx free_bits = mutator_bits | collector_bits | old_collector_bits;
> 159:   uintx notfree_bits =  ~free_bits;
> 160:   log_debug(gc)("%6zu : " SIZE_FORMAT_X_0 " 0x" SIZE_FORMAT_X_0 " 0x" SIZE_FORMAT_X_0 " 0x" SIZE_FORMAT_X_0,

Why is this %6zu instead of %6zd?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23084#discussion_r1913708708


More information about the shenandoah-dev mailing list