JDK-8262271 : SA: Add new stress test that tests getting the stack trace of an active thread
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-02-23
  • Updated: 2021-03-25
  • Resolved: 2021-03-19
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
17 b15Fixed
Description
JDK-8243455 was due to many tests trying to get the stack trace of a active thread, and then look for a specific frame in the stack trace. The problem is thread might be in a state that doesn't allow SA to get the stack trace, causing the test to fail.

JDK-8243455 is being fixed by having the tests instead use the stack trace of a thread that is not active. However, doing this also eliminates some vital SA testing of active thread stack traces. Although SA might not always be able to get the stack trace, it should not hang, assert, or throw various exceptions, all of which have been issues in the past, and a number of fixes have been put in place for.

This task will include a new test that stresses getting the stack trace of active threads, making sure no SA errors result from doing so.
Comments
Changeset: ed701ea6 Author: Chris Plummer <cjplummer@openjdk.org> Date: 2021-03-19 19:20:11 +0000 URL: https://git.openjdk.java.net/jdk/commit/ed701ea6
19-03-2021