-
Bug
-
Resolution: Fixed
-
P4
-
11.0.9, 15, 16
-
b26
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8275211 | 11.0.14 | Qi Ao | P4 | Resolved | Fixed | b01 |
The test fails because Shenandoah support in jdk11 has been introduced in a different way than for later releases.
I.e. in jdk11u the option UseShenandoahGC is not even available if the VM has not been built without Shenandoah. Such a VM prints "Unrecognized VM option 'UseShenandoahGC'", while in later jdks, when built without Shenandoah (or any different GC) the VM prints "Option -XX:+UseShenandoahGC not supported".
I.e. the test code fails because with jdk11u "isShenandoahGCon" will be null because the VM does not even know the flag, while in later jdks "isShenandoahGCon" will be false as the VM knows the flag.
So in jdk11 a NullPointerException is thrown at TestDriver.java:84 because isShenandoahGCon is null.
In any case the test should use the API from sun.hotspot.gc.GC to detect GC presence in all jdk versions, as it returns true/false always.
I.e. in jdk11u the option UseShenandoahGC is not even available if the VM has not been built without Shenandoah. Such a VM prints "Unrecognized VM option 'UseShenandoahGC'", while in later jdks, when built without Shenandoah (or any different GC) the VM prints "Option -XX:+UseShenandoahGC not supported".
I.e. the test code fails because with jdk11u "isShenandoahGCon" will be null because the VM does not even know the flag, while in later jdks "isShenandoahGCon" will be false as the VM knows the flag.
So in jdk11 a NullPointerException is thrown at TestDriver.java:84 because isShenandoahGCon is null.
In any case the test should use the API from sun.hotspot.gc.GC to detect GC presence in all jdk versions, as it returns true/false always.
- backported by
-
JDK-8275211 nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriver.java fails
- Resolved
- relates to
-
JDK-8250784 Shenandoah: A Low-Pause-Time Garbage Collector
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/15384ad5
-
Commit openjdk/jdk/5fedb69e
-
Review openjdk/jdk11u-dev/517
-
Review openjdk/jdk/1319
(1 links to)