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 — Native Lock Profiling · Issue #1547 · async-profiler/async-profiler

Native Lock Profiling #1547

New issue
Copy link
New issue
Copy link
Closed
Feature
Closed
Native Lock Profiling#1547
Feature
Copy link
Assignees
roy-soumadipta
Labels
enhancement

Description

@Baraa-Hasheesh
Baraa-Hasheesh
opened on Oct 20, 2025
Issue body actions

Describe the feature

Currently the async-profilers offers profiling of java locks for java applications via the lock feature, this is indeed useful when checking for contended resources in the java layers

However it's not enough as the contention may happen on native resource guarded by a pthread_mutex_t, these kind of contentions won't be as viewable as the java locks

Use Case

This feature will be quite useful for

  • Native developers that use native locks
  • System developers, such as Java developers profiling the contension on JVM startup which happens using native locks

Proposed Solution

I'm proposing adding a new profiling engine nativelock that is similar to the mallocTracer
This new engine will use GOT patching as currently done for memory allocations.

This engine will intercept calls to pthread_mutex_lock, pthread_rwlock_rdlock & pthread_rwlock_wrlock & checks for the time it took to acquire the lock for sampling contended locks

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Activity

  1. Baraa-Hasheesh
    added
    enhancement
    on Oct 20, 2025
  2. Baraa-Hasheesh
    assigned
    roy-soumadipta
    on Oct 20, 2025
  3. Baraa-Hasheesh
    added the
    Feature
    issue type on Oct 22, 2025
  4. apangin
    added a commit that references this issue on Oct 23, 2025

    #1547: Implement native lock profiling (#1549)

    85ae06b
  5. Baraa-Hasheesh commented on Oct 24, 2025

    @Baraa-Hasheesh
    Baraa-Hasheesh
    on Oct 24, 2025
    ContributorAuthor
    More actions

    Supported in #1549

  6. Baraa-Hasheesh
    closed this as completedon Oct 24, 2025
  7. dongjoon-hyun
    added a commit that references this issue on Apr 23, 2026

    [SPARK-56577][BUILD] Upgrade `ap-loader` to 4.3-13

    26c8c54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @roy-soumadipta
    roy-soumadipta

Labels

enhancement

Type

Feature

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.