jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8269881: SA stack dump fails to include stack trace for SteadyStateThread

Open plummercj opened this issue 8 months ago • 6 comments

The completely unrelated fix to JDK-8335124 led me to believe that the issue with sometimes not being able to get the stack trace of the SteadyStateThread might be due to the thread being active for a short period after being reported as in the Thread.State.BLOCKED state. Once set to that state, the thread still needs to call a native OS API to block the thread so it is truly idle. During this time the thread stack might be inconsistent and not walk-able. The fix is to add a short sleep after the thread has moved to the Thread.State.BLOCKED state to give it a chance to finish blocking.

Tested with Tier1 CI and all svc test tasks for tier2 and tier5.


Progress

  • [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8269881: SA stack dump fails to include stack trace for SteadyStateThread (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19951/head:pull/19951
$ git checkout pull/19951

Update a local copy of the PR:
$ git checkout pull/19951
$ git pull https://git.openjdk.org/jdk.git pull/19951/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 19951

View PR using the GUI difftool:
$ git pr show -t 19951

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19951.diff

Webrev

Link to Webrev Comment

plummercj avatar Jun 28 '24 20:06 plummercj