JDK-8269135 : TestDifferentProtectionDomains runs into timeout in client VM
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-22
  • Updated: 2022-03-10
  • Resolved: 2021-07-02
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.
JDK 17 JDK 18
17.0.4-oracleFixed 18 b05Fixed
Related Reports
Relates :  
Description
The tier1 jtreg test runtime/Nestmates/protectionDomain/TestDifferentProtectionDomains.java times out if executed in a client VM, in both release and debug builds.

The test tries to compile a method using the WhiteBox with optimization level 4, which is not available in client VMs. The WhiteBox only prints out a warning on stderr, and the call to enqueueMethodForCompilation succeeds. After that, the test case goes into an endless loop to wait for the compilation to finish, which never happens, because the method is not enqueued for compilation.
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/213 Date: 2022-03-09 14:26:08 +0000
09-03-2022

Fix request [17u] I backport this for parity with 17.0.4-oracle. No risk, only a test change. Clean backport. Test passes.
09-03-2022

Changeset: 53ad903a Author: Christoph Göttschkes <cgo@openjdk.org> Committer: Daniel D. Daugherty <dcubed@openjdk.org> Date: 2021-07-02 15:16:31 +0000 URL: https://git.openjdk.java.net/jdk/commit/53ad903a820b6892dbb273357defe7cf5c7e24ab
02-07-2021

Moving the bug from hotspot/compiler -> hotspot/runtime since the test is in test/hotspot/jtreg/runtime/...
22-06-2021