On Mon, 14 Sep 2026 02:27:16 GMT, Yasumasa Suenaga <[email protected]> wrote:

> [JDK-8390106](https://bugs.openjdk.org/browse/JDK-8392323) introduced a new 
> test to check whether `inspect` on CLHSDB works for value object. However it 
> would not work if GC is selected by the user like 
> `JTREG=VM_OPTIONS=-XX:+UseSerialGC`. See 
> [JDK-8392323](https://bugs.openjdk.org/browse/JDK-8392323) for details.
> 
> ClhsdbInspectWithValueObject.java have to kick `LingeredAppWithValueObject` 
> with Epsilon GC to prevent object promotion because object (oop) addresses 
> are required for `inspect` command. Hence `ClhsdbInspectWithValueObject` 
> kicks  `LingeredAppWithValueObject` with `startAppExactJvmOpts()` instead of 
> `startApp()` to prevent to configure GC by user.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Other than the minor @bug issue, the fix looks good.

test/hotspot/jtreg/serviceability/sa/ClhsdbInspectWithValueObject.java line 37:

> 35: /**
> 36:  * @test
> 37:  * @bug 8390106 8392323

I don't think you should add a bug ID for a bug that was in the test.

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

Marked as reviewed by cjplummer (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/32857#pullrequestreview-5193660493
PR Review Comment: https://git.openjdk.org/jdk/pull/32857#discussion_r4002017303

Reply via email to