[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).

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

Commit messages:
 - 8392323: serviceability/sa/ClhsdbInspectWithValueObject.java fails due to 
"Multiple garbage collectors selected"

Changes: https://git.openjdk.org/jdk/pull/32857/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32857&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8392323
  Stats: 5 lines in 1 file changed: 1 ins; 1 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/32857.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32857/head:pull/32857

PR: https://git.openjdk.org/jdk/pull/32857

Reply via email to