JDK-8309171 : Test vmTestbase/nsk/jvmti/scenarios/jni_interception/JI05/ji05t001/TestDescription.java fails after JDK-8308341
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 21
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2023-05-31
  • Updated: 2025-02-05
  • Resolved: 2023-05-31
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 11 JDK 17 JDK 21
11.0.28-oracleFixed 17.0.15-oracleFixed 21 b25Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8309231 :  
Description
----------System.out:(4/291)----------
The following fake exception stacktrace is for failure analysis. 
nsk.share.Fake_Exception_for_RULE_Creation: (ji05t001.cpp:263) TEST FAILURE: AttachCurrentThread() returns: -1
	at nsk_lvcomplain(nsk_tools.cpp:172)
# ERROR: ji05t001.cpp, 263: TEST FAILURE: AttachCurrentThread() returns: -1
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3084 Date: 2024-12-02 13:08:05 +0000
02-12-2024

Fix request [17u] Included in backport of JDK-8308341.
02-12-2024

Changeset: 01199698 Author: David Holmes <dholmes@openjdk.org> Date: 2023-05-31 21:13:30 +0000 URL: https://git.openjdk.org/jdk/commit/01199698166baf5e727500fdb7846084f7b8f8ac
31-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14239 Date: 2023-05-31 06:41:26 +0000
31-05-2023

The fix for JDK-8308341 overlooked the fact that during VM initialization, agents can run and create native threads that will attach to (and potentially detach from) the VM. The check that VM init was complete before allowing those operations was too strong and has to be reverted.
31-05-2023