On Tue, 30 Dec 2025 22:37:43 GMT, Eunbin Son <[email protected]> wrote:
> ### Summary > MemoryUsage.toString() now displays "N/A" for undefined init and max values > (-1) instead of "-1(-1K)". > > This addresses the first of three issues in JDK-8374395. > > ### Description > When init or max is -1 (undefined), toString() outputs "-1(-1K)". The Javadoc > states that -1 means undefined, but the output does not clearly indicate this. > > toString() checks if init or max equals -1 and outputs "init = N/A" or "max = > N/A" respectively. Output format for valid values remains unchanged. > > Added test cases to the existing jtreg test file. All tests pass. > > ### Bug-ID : JDK-8374395 > https://bugs.java.com/bugdatabase/view_bug?bug_id=JDK-8374395 This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/29009
