René's URL Explorer Experiment


Title: Instrument native threads by zhengyu123 · Pull Request #308 · DataDog/java-profiler · GitHub

Open Graph Title: Instrument native threads by zhengyu123 · Pull Request #308 · DataDog/java-profiler

X Title: Instrument native threads by zhengyu123 · Pull Request #308 · DataDog/java-profiler

Description: What does this PR do?: Instrument/profile native threads, the threads that are created/started outside of JVM, on hotspot/non-musl based JVM. Motivation: Enhance Java profiler to profiler native threads. Additional Notes: The feature is now only enabled for hotspot based JVM running on non-musl Linux platform. The reasons: A crash seen on aarch64/musl /JDK11. It might not be related to this change, but it is hard to confirm. Disable the feature for musl based Linux for now. J9 has issues to walk native only thread stack in release build, it shows only .no_java_frame while debug build shows correct stack. How to test the change?: Regular tests JDK tier1 tests with profiler agent. Although, there are failures, but match java-profiler main line. There are failures that are expected: HeapMonitor uses agent, which conflicts with profiler agent Compiler frame is not compatible with agent. For Datadog employees: If this PR touches code that signs or publishes builds or packages, or handles credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance. This PR doesn't touch any of that. JIRA: PROF-11577 Unsure? Have a question? Request a review!

Open Graph Description: What does this PR do?: Instrument/profile native threads, the threads that are created/started outside of JVM, on hotspot/non-musl based JVM. Motivation: Enhance Java profiler to profiler native th...

X Description: What does this PR do?: Instrument/profile native threads, the threads that are created/started outside of JVM, on hotspot/non-musl based JVM. Motivation: Enhance Java profiler to profiler native th...

Opengraph URL: https://github.com/DataDog/java-profiler/pull/308

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:44b64fda-6d0b-b5b9-fcaa-3a8a37156b7a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB34A:107233:4C88E2C:66760B0:6A655AC9
html-safe-nonce0484c3a95c52287259149771bc70f99c5f71264f54ac08dcb6f40943781b8c6b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzRBOjEwNzIzMzo0Qzg4RTJDOjY2NzYwQjA6NkE2NTVBQzkiLCJ2aXNpdG9yX2lkIjoiNzI4MzI1NzAyNjY2NzY5ODg4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac249e89f843fdc8bc01a368da2a164a0e17a4175a6fc74312ab5eca726e44574f
hovercard-subject-tagpull_request:3087084017
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
twitter:imagehttps://avatars.githubusercontent.com/u/13698673?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/13698673?s=400&v=4
og:image:altWhat does this PR do?: Instrument/profile native threads, the threads that are created/started outside of JVM, on hotspot/non-musl based JVM. Motivation: Enhance Java profiler to profiler native th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/DataDog/java-profiler git https://github.com/DataDog/java-profiler.git
octolytics-dimension-user_id365230
octolytics-dimension-user_loginDataDog
octolytics-dimension-repository_id585532470
octolytics-dimension-repository_nwoDataDog/java-profiler
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id585532470
octolytics-dimension-repository_network_root_nwoDataDog/java-profiler
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDataDog%2Fjava-profiler%2Fpull%2F308%2Fcommits%2F617ab9a68891d2a35af082943bbe37c95fdc29ac
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FDataDog%2Fjava-profiler%2Fpull%2F308%2Fcommits%2F617ab9a68891d2a35af082943bbe37c95fdc29ac
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=DataDog%2Fjava-profiler
Reloadhttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
Reloadhttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
Reloadhttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
Please reload this pagehttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
DataDog https://github.com/DataDog
java-profilerhttps://github.com/DataDog/java-profiler
Notifications https://github.com/login?return_to=%2FDataDog%2Fjava-profiler
Fork 12 https://github.com/login?return_to=%2FDataDog%2Fjava-profiler
Star 33 https://github.com/login?return_to=%2FDataDog%2Fjava-profiler
Code https://github.com/DataDog/java-profiler
Issues 10 https://github.com/DataDog/java-profiler/issues
Pull requests 20 https://github.com/DataDog/java-profiler/pulls
Actions https://github.com/DataDog/java-profiler/actions
Security and quality 0 https://github.com/DataDog/java-profiler/security
Insights https://github.com/DataDog/java-profiler/pulse
Code https://github.com/DataDog/java-profiler
Issues https://github.com/DataDog/java-profiler/issues
Pull requests https://github.com/DataDog/java-profiler/pulls
Actions https://github.com/DataDog/java-profiler/actions
Security and quality https://github.com/DataDog/java-profiler/security
Insights https://github.com/DataDog/java-profiler/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FDataDog%2Fjava-profiler%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FDataDog%2Fjava-profiler%2Fissues%2Fnew%2Fchoose
zhengyu123https://github.com/zhengyu123
mainhttps://github.com/DataDog/java-profiler/tree/main
zgu/inst_native_threadhttps://github.com/DataDog/java-profiler/tree/zgu/inst_native_thread
Conversation 21 https://github.com/DataDog/java-profiler/pull/308
Commits 18 https://github.com/DataDog/java-profiler/pull/308/commits
Checks 96 https://github.com/DataDog/java-profiler/pull/308/checks
Files changed https://github.com/DataDog/java-profiler/pull/308/files
Please reload this pagehttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
Instrument native threads https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#top
Show all changes 18 commits https://github.com/DataDog/java-profiler/pull/308/files
74158e5 Instrument native threads zhengyu123 Dec 9, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/74158e5a8e0cd499950503be9a6ee457df1fc318
07e480d Fix zhengyu123 Dec 9, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/07e480d5e63d7b9f607feec3915b96886dbc7be6
db6afef J9 stack walk zhengyu123 Dec 10, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/db6afef44aff8d1a6b85705db78489c26c46b0ba
ba40661 Cleanup zhengyu123 Dec 10, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/ba406616fb9cd2f201fef6653bd32c32a33555c8
3ac6223 Fix bug zhengyu123 Dec 10, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/3ac62231b5775fedc7d93c55f779ebba4606d27d
0bdded8 Set cstack=dwarf for NativeThreadTest (J9) zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/0bdded8456d4068e3b40566c997e5f4e82e38e0c
48354c2 Hotspot/Zing only zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/48354c241ed63f3a48491638c25b884904f090ce
617ab9a Fix zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
b445304 More fix zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/b445304df191b6f062c87bef9939bd5328c21f8e
77aaedb Exclude J9 from NativeThreadTest zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/77aaedbba04cc789c646942a6a7ff9198f794bf9
60d8350 Fix zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/60d835009b39bf735b8d921ff533e2f336e28cfa
8cdabce Handle musl zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/8cdabce30f6a9413ce05c1a0a33436c94a1b0a9c
36fe9b1 Exclude Musl from NativeThreadTest zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/36fe9b122ab7d0beb1839e813725b4842fe309de
5d46345 cleanup zhengyu123 Dec 11, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/5d46345b32cb44f24bc2729df52fd60c35df51b0
7774a2c Remove duplicated check zhengyu123 Dec 12, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/7774a2c126166042ecccb054c48e343ece9cb893
826dfd5 Merge branch 'main' into zgu/inst_native_thread zhengyu123 Dec 12, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/826dfd5b3c286e3da976504c177d2a239bc89cf1
566d77c Merge branch 'main' into zgu/inst_native_thread jbachorik Dec 15, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/566d77c5a07bf88c0d41e886664d2a861c689124
d76aba9 Restore test parameter zhengyu123 Dec 15, 2025 https://github.com/DataDog/java-profiler/pull/308/commits/d76aba980057798b103af096377237be62f50999
Clear filters https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
Please reload this pagehttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
Please reload this pagehttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
Prev https://github.com/DataDog/java-profiler/pull/308/commits/48354c241ed63f3a48491638c25b884904f090ce
Next https://github.com/DataDog/java-profiler/pull/308/commits/b445304df191b6f062c87bef9939bd5328c21f8e
Please reload this pagehttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
https://github.com/zhengyu123
zhengyu123https://github.com/DataDog/java-profiler/commits?author=zhengyu123
https://github.com/DataDog/java-profiler/blob/main/.github/CODEOWNERS#L4
ddprof-lib/src/main/cpp/ctimer_linux.cpphttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#diff-497c5ffdf5d807d4cecca9e6e0aff14b4615e319022fdb6ad2c856f2331b6769
View file https://github.com/DataDog/java-profiler/blob/617ab9a68891d2a35af082943bbe37c95fdc29ac/ddprof-lib/src/main/cpp/ctimer_linux.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/DataDog/java-profiler/pull/308/commits/{{ revealButtonHref }}
https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#diff-497c5ffdf5d807d4cecca9e6e0aff14b4615e319022fdb6ad2c856f2331b6769
https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#diff-497c5ffdf5d807d4cecca9e6e0aff14b4615e319022fdb6ad2c856f2331b6769
https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#diff-497c5ffdf5d807d4cecca9e6e0aff14b4615e319022fdb6ad2c856f2331b6769
https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#diff-497c5ffdf5d807d4cecca9e6e0aff14b4615e319022fdb6ad2c856f2331b6769
Please reload this pagehttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
https://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac#diff-497c5ffdf5d807d4cecca9e6e0aff14b4615e319022fdb6ad2c856f2331b6769
Please reload this pagehttps://github.com/DataDog/java-profiler/pull/308/commits/617ab9a68891d2a35af082943bbe37c95fdc29ac
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.