Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282477

[x86, aarch64] vmassert(_last_Java_pc == NULL, "already walkable"); fails with async profiler

    XMLWordPrintable

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b21
    • CPU:
      x86, aarch64

      Backports

        Description

        We hit the assertion sporadically on x86_64 when using the async profiler via "AsyncGetCallTrace". (aarch64 has the same implementation.)
        "frame::sender_for_entry_frame" calls "capture_last_Java_pc()" if _last_Java_pc == NULL. Within the latter function, we assert that it is still NULL. However, the async profiler may intercept the JavaThread and set the _last_Java_pc in the JavaFrameAnchor. So, the assertion fires when it sees that the work is already done.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jbechberger Johannes Bechberger
                Reporter:
                mdoerr Martin Doerr
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: