C99 introduced the 'z' length modifier for formatted output. Quoting from the C99 standard (7.19.6.1/7)
"Specifies that a following d, i, o, u, x, or X conversion specifier applies to a size_t or the corresponding signed integer type argument;"
Because C99 is implicitly available with C++14, we can now use the 'z' modifier instead of the more verbose and clumsy to use SIZE_FORMAT and friends provided by globalDefinitions.hpp.
"Specifies that a following d, i, o, u, x, or X conversion specifier applies to a size_t or the corresponding signed integer type argument;"
Because C99 is implicitly available with C++14, we can now use the 'z' modifier instead of the more verbose and clumsy to use SIZE_FORMAT and friends provided by globalDefinitions.hpp.
- relates to
-
JDK-8329549 Remove FORMAT64_MODIFIER
-
- Resolved
-
-
JDK-8346990 Remove INTX_FORMAT and UINTX_FORMAT macros
-
- Resolved
-
- links to
-
Review openjdk/jdk/15115
1.
|
Replace SSIZE_FORMAT with 'z' length modifier |
|
Resolved | Coleen Phillimore | |
2.
|
Replace SIZE_FORMAT in os/os_cpu/cpu directories |
|
Resolved | Coleen Phillimore | |
3.
|
Replace SIZE_FORMAT in compiler directories |
|
Resolved | Coleen Phillimore | |
4.
|
Replace SIZE_FORMAT in jfr directory |
|
Resolved | Coleen Phillimore | |
5.
|
Replace SIZE_FORMAT in shared gc |
|
Resolved | Coleen Phillimore | |
6.
|
Replace SIZE_FORMAT in parallel and serial gc |
|
Resolved | Coleen Phillimore | |
7.
|
Replace SIZE_FORMAT in g1 |
|
Resolved | Coleen Phillimore | |
8.
|
Replace SIZE_FORMAT in zgc |
|
Resolved | Coleen Phillimore | |
9.
|
Replace SIZE_FORMAT in shenandoah |
|
Resolved | Coleen Phillimore | |
10.
|
Replace SIZE_FORMAT in runtime code |
|
Resolved | Coleen Phillimore | |
11.
|
Replace SIZE_FORMAT in memory and metaspace |
|
Resolved | Coleen Phillimore | |
12.
|
Remove SIZE_FORMAT macros and replace remaining uses |
|
Resolved | Coleen Phillimore |