KEMBAR78
Do not dereference jmethodIDs on JDK 26 · Issue #1358 · async-profiler/async-profiler · GitHub
Skip to content

Do not dereference jmethodIDs on JDK 26 #1358

@apangin

Description

@apangin

Describe the bug

JDK-8268406 "Deallocate jmethodID native memory" changed the way how jmethodIDs are represented, they are no longer pointers to Method*.

Async-profiler performs some tricks to workaround older JVM bugs where method-related JVM TI functions could lead to JVM crashes. These tricks are not needed with JDK 26 and therefore the related code should be removed.

Expected vs. actual behavior

Expected: No regression with JDK 26.
Actual: JVM crash during resolution of jmethodIDs.

Async-profiler version

4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions