GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AsyncProfiler.getInstance() may deadlock due to JDK-8266310 · Issue #1818 · async-profiler/async-profiler

AsyncProfiler.getInstance() may deadlock due to JDK-8266310 #1818

New issue
Copy link
New issue
Copy link
Closed
Closed
AsyncProfiler.getInstance() may deadlock due to JDK-8266310#1818
Copy link
Assignees
apangin
Labels
bug

Description

@apangin
apangin
opened on Oct 7, 2026
Issue body actions

Describe the bug

In rare cases, AsyncProfiler.getInstance() may cause a class-loading deadlock on JDK 17 and earlier with the symptoms described in the JDK bug JDK-8266310.

This bug is triggered by async-profiler trying to find one.profiler.Recording class with the JNI FindClass function while inside JNI_OnLoad handler.

Expected vs. actual behavior

Async-profiler Java API should not conflict with other threads loading unrelated libraries.

Reproduction Steps

A reproducer generated by Claude Code: jni-onload-deadlock.zip

Additional Information/Context

No response

Async-profiler version

4.5

Environment details

All environments

Activity

  1. apangin
    added
    bug
    on Oct 7, 2026
  2. apangin
    self-assigned this
    on Oct 7, 2026
  3. apangin
    added a commit that references this issue on Oct 8, 2026

    Fixed class-loading bugs #1811, #1818

    ab0cda8
  4. apangin
    closed this as completedon Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @apangin
    apangin

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.