-
Enhancement
-
Resolution: Fixed
-
P4
-
11.0.9, 17, 18
-
b18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8293825 | 17.0.6 | Paul Hohensee | P4 | Resolved | Fixed | b01 |
JDK-8293820 | 11.0.18 | Paul Hohensee | P4 | Resolved | Fixed | b01 |
JDK-8295160 | openjdk8u362 | Paul Hohensee | P4 | Resolved | Fixed | b01 |
$ CONF=linux-x86_64-server-fastdebug make run-test TEST=jdk/jfr/event/oldobject/TestClassLoaderLeak.java TEST_VM_OPTS="-XX:+UseShenandoahGC"
...
STDERR:
java.lang.RuntimeException: Could not find class leak
at jdk.test.lib.Asserts.fail(Asserts.java:594)
at jdk.jfr.event.oldobject.TestClassLoaderLeak.main(TestClassLoaderLeak.java:80)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
I believe this test implicitly wants at least one GC cycle to happen so that ObjectSampler::oop_storage_gc_notification turns the sampled objects "old". An easy way to do this is to trim the Java heap size. If that does not work, we would need to go to MXBeans and watch GC cycles happening.
- backported by
-
JDK-8293820 jfr/event/oldobject/TestClassLoaderLeak.java fails when GC cycles are not happening
- Resolved
-
JDK-8293825 jfr/event/oldobject/TestClassLoaderLeak.java fails when GC cycles are not happening
- Resolved
-
JDK-8295160 jfr/event/oldobject/TestClassLoaderLeak.java fails when GC cycles are not happening
- Resolved
- relates to
-
JDK-8279937 jdk/jdk/jfr/event/oldobject/TestClassLoaderLeak.java test failed intermittently
- Closed
-
JDK-8293828 JFR: jfr/event/oldobject/TestClassLoaderLeak.java still fails when GC cycles are not happening
- Resolved
- links to
-
Commit openjdk/jdk8u-dev/4a25b00a
-
Commit openjdk/jdk11u-dev/6784ea08
-
Commit openjdk/jdk17u-dev/a18e936b
-
Commit openjdk/jdk/47bfc8aa
-
Review openjdk/jdk8u-dev/120
-
Review openjdk/jdk11u-dev/1350
-
Review openjdk/jdk17u-dev/663
-
Review openjdk/jdk/5775