On Fri, 23 May 2025 04:36:25 GMT, Thomas Stuefe <stu...@openjdk.org> wrote:

>> I agree. It's hard to grep for specific information since most GC have 
>> different approaches to printing similar information.
>> 
>> However, all GCs (even Epsilon) print the string "used", so maybe grepping 
>> for that is a reasonable approach, just to see that something is printed?
>
> Heap.info is important; we should have better tests for this. But we can hold 
> this off for a separate PR, so I am fine with scanning for "used".

I agree that the test should be improved. I'll file an issue once this PR is 
integrated to follow up on that.

Maybe some inspiration can be taken from the SA test in 
`test/hotspot/jtreg/serviceability/sa/TestUniverse.java`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25214#discussion_r2104489194

Reply via email to