JDK-8226309 : [AOT] java/lang/reflect/PublicMethods/PublicMethodsTest.java timed out
Type:Bug
Component:hotspot
Sub-Component:compiler
Affected Version:11,13,14
Priority:P4
Status:Closed
Resolution:Not an Issue
CPU:x86_64
Submitted:2019-06-18
Updated:2022-11-10
Resolved:2022-11-10
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Error. Agent error\: java.lang.Exception\: Agent 7 timed out with a timeout of 480 seconds; check console log for any additional details
Comments
AOT was removed in JDK 17 by JDK-8264805
10-11-2022
The method is on problem list. I can investigate this bug later in JDK 15. This is not new regression.
22-11-2019
On linux it takes a lot less time and I tried the same flags on my local linux box and with AOTed java.base time slightly improved from default time. It seems reasonable that it is similar (or the same) issue as JDK-8222445 - AOT on Windows.
20-06-2019
Without AOTed java.base the test takes about 73 sec with debug VM and without -ea -esa:
[2019-06-20T12:48:56,123Z] TEST: java/lang/reflect/PublicMethods/PublicMethodsTest.java
[2019-06-20T12:48:56,123Z] build: 0.406 seconds
[2019-06-20T12:48:56,123Z] compile: 0.406 seconds
[2019-06-20T12:48:56,123Z] main: 72.969 seconds
[2019-06-20T12:48:56,123Z] TEST RESULT: Passed. Execution successful
With -ea -esa and Graal jit:
[2019-06-19T20:47:19,624Z] TEST: java/lang/reflect/PublicMethods/PublicMethodsTest.java
[2019-06-19T20:47:19,624Z] build: 1.25 seconds
[2019-06-19T20:47:19,624Z] compile: 1.25 seconds
[2019-06-19T20:47:19,624Z] main: 355.703 seconds
[2019-06-19T20:47:19,624Z] TEST RESULT: Passed. Execution successful
20-06-2019
It took almost 45 min to compile java.base.so
Total time: 2639727 ms
In JDK-8222445 Bob pointed that it took 35 min.
Note this compilation is done only once before any tests which use it are executed. But it show how powerful (or not) machine is.