-
Bug
-
Resolution: Unresolved
-
P4
-
24
-
Cause Known
-
generic
-
linux
The following test failed in the JDK24 CI:
jdk/jfr/event/compiler/TestCodeSweeper.java
Here's a snippet from the log file:
#section:main
----------messages:(7/539)----------
command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:-SegmentedCodeCache -XX:+WhiteBoxAPI jdk.jfr.event.compiler.TestCodeSweeper
reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:-SegmentedCodeCache -XX:+WhiteBoxAPI jdk.jfr.event.compiler.TestCodeSweeper
started: Fri Aug 09 10:06:37 UTC 2024
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jfr,java.management
finished: Fri Aug 09 10:06:41 UTC 2024
elapsed time (seconds): 3.333
----------configuration:(3/51)----------
Boot Layer
add modules: jdk.jfr java.management
----------System.out:(14/932)----------
************************************************
This test will warn that the code cache is full.
That is expected and is the purpose of the test.
************************************************
provokeEvents()
1 compiler directives added
[3.046s][warning][codecache] CodeCache is full. Compiler has been disabled.
[3.046s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
CodeCache: size=245760Kb used=245760Kb max_used=245760Kb free=0Kb
bounds [0x00007f7644836000, 0x00007f7653836000, 0x00007f7653836000]
total_blobs=14373, nmethods=1264, adapters=751, full_count=1
Compilation: disabled (not enough contiguous free space left), stopped_count=1, restarted_count=0
WB error: failed to blocking compile at level 4 method jdk.jfr.event.compiler.TestCodeSweeper::verifyFullEvent
WB error: failed to blocking compile at level 1 method jdk.jfr.event.compiler.TestCodeSweeper::verifyFullEvent
----------System.err:(31/2341)----------
Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
java.lang.OutOfMemoryError: Out of space in CodeCache for adapters
at java.base/java.util.TreeMap.tailMap(TreeMap.java:1256)
at java.base/java.util.TreeMap.tailMap(TreeMap.java:1291)
at jdk.jfr/jdk.jfr.internal.consumer.RepositoryFiles.path(RepositoryFiles.java:147)
at jdk.jfr/jdk.jfr.internal.consumer.RepositoryFiles.firstPath(RepositoryFiles.java:93)
at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.processRecursionSafe(EventDirectoryStream.java:147)
at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.process(EventDirectoryStream.java:131)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.execute(AbstractEventStream.java:261)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:284)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:281)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.run(AbstractEventStream.java:281)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.lambda$startAsync$1(AbstractEventStream.java:224)
at java.base/java.lang.Thread.run(Thread.java:1575)
STATUS:Failed.`main' threw exception: java.lang.OutOfMemoryError: Out of space in CodeCache for adapters
java.lang.RuntimeException: No events: expected false, was true
at jdk.test.lib.Asserts.fail(Asserts.java:691)
at jdk.test.lib.Asserts.assertFalse(Asserts.java:518)
at jdk.test.lib.jfr.Events.hasEvents(Events.java:159)
at jdk.jfr.event.compiler.TestCodeSweeper.main(TestCodeSweeper.java:111)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:588)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.RuntimeException: No events: expected false, was true
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: No events: expected false, was true
----------rerun:(42/7074)*----------
Note: Ignore the "Out of space in CodeCache" part of the failure.
That is normal.
This is the actual failing part of the test:
JavaTest Message: Test threw exception: java.lang.RuntimeException: No events: expected false, was true
jdk/jfr/event/compiler/TestCodeSweeper.java
Here's a snippet from the log file:
#section:main
----------messages:(7/539)----------
command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:-SegmentedCodeCache -XX:+WhiteBoxAPI jdk.jfr.event.compiler.TestCodeSweeper
reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:-SegmentedCodeCache -XX:+WhiteBoxAPI jdk.jfr.event.compiler.TestCodeSweeper
started: Fri Aug 09 10:06:37 UTC 2024
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jfr,java.management
finished: Fri Aug 09 10:06:41 UTC 2024
elapsed time (seconds): 3.333
----------configuration:(3/51)----------
Boot Layer
add modules: jdk.jfr java.management
----------System.out:(14/932)----------
************************************************
This test will warn that the code cache is full.
That is expected and is the purpose of the test.
************************************************
provokeEvents()
1 compiler directives added
[3.046s][warning][codecache] CodeCache is full. Compiler has been disabled.
[3.046s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
CodeCache: size=245760Kb used=245760Kb max_used=245760Kb free=0Kb
bounds [0x00007f7644836000, 0x00007f7653836000, 0x00007f7653836000]
total_blobs=14373, nmethods=1264, adapters=751, full_count=1
Compilation: disabled (not enough contiguous free space left), stopped_count=1, restarted_count=0
WB error: failed to blocking compile at level 4 method jdk.jfr.event.compiler.TestCodeSweeper::verifyFullEvent
WB error: failed to blocking compile at level 1 method jdk.jfr.event.compiler.TestCodeSweeper::verifyFullEvent
----------System.err:(31/2341)----------
Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
java.lang.OutOfMemoryError: Out of space in CodeCache for adapters
at java.base/java.util.TreeMap.tailMap(TreeMap.java:1256)
at java.base/java.util.TreeMap.tailMap(TreeMap.java:1291)
at jdk.jfr/jdk.jfr.internal.consumer.RepositoryFiles.path(RepositoryFiles.java:147)
at jdk.jfr/jdk.jfr.internal.consumer.RepositoryFiles.firstPath(RepositoryFiles.java:93)
at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.processRecursionSafe(EventDirectoryStream.java:147)
at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.process(EventDirectoryStream.java:131)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.execute(AbstractEventStream.java:261)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:284)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:281)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.run(AbstractEventStream.java:281)
at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.lambda$startAsync$1(AbstractEventStream.java:224)
at java.base/java.lang.Thread.run(Thread.java:1575)
STATUS:Failed.`main' threw exception: java.lang.OutOfMemoryError: Out of space in CodeCache for adapters
java.lang.RuntimeException: No events: expected false, was true
at jdk.test.lib.Asserts.fail(Asserts.java:691)
at jdk.test.lib.Asserts.assertFalse(Asserts.java:518)
at jdk.test.lib.jfr.Events.hasEvents(Events.java:159)
at jdk.jfr.event.compiler.TestCodeSweeper.main(TestCodeSweeper.java:111)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:588)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
JavaTest Message: Test threw exception: java.lang.RuntimeException: No events: expected false, was true
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: No events: expected false, was true
----------rerun:(42/7074)*----------
Note: Ignore the "Out of space in CodeCache" part of the failure.
That is normal.
This is the actual failing part of the test:
JavaTest Message: Test threw exception: java.lang.RuntimeException: No events: expected false, was true
There are no Sub-Tasks for this issue.