JDK-8240550 : [nestmates] java/lang/invoke/defineHiddenClass/BasicTest.java timeout with Graal + -Xcomp
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: repo-valhalla
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2020-03-04
  • Updated: 2024-01-29
  • Resolved: 2020-05-07
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.

To download the current JDK release, click here.
Other
repo-valhallaResolved
Related Reports
Relates :  
Description
----------messages:(6/219)----------
command: testng -Xcomp BasicTest
reason: User specified action: run testng/othervm -Xcomp BasicTest 
Mode: othervm [/othervm specified]
Timeout information:
--- Timeout information end.
elapsed time (seconds): 1316.013
----------configuration:(0/0)----------
----------System.out:(4/98)----------
[TestNG] Running:
  java/lang/invoke/defineHiddenClass/BasicTest.java

Timeout refired 1200 times
----------System.err:(0/0)----------
Comments
BasicTest.java no longer runs with -Xcomp since it's not necessary. JDK-8244616 is created to add a regression test specific to C2 trusting non-static final fields of a hidden class.
07-05-2020

> Maybe we can create a JBS issue for such a new test? [~mchung] That sounds like a good idea.
07-05-2020

[~dlong] This BasicTest doesn't necessarily need -Xcomp flag. Instead I think we want to have a test to verify the intrinsification of Class::isHiddenClass and also trusted non-static final fields optimized by JIT. Maybe we can create a JBS issue for such a new test?
05-03-2020

Graal with -Xcomp is known to be slow. Maybe increase the timeout, or use a loop to make sure the code is compiled?
04-03-2020