Skip to content

Keep thread name after attaching it to JVM#1713

Merged
rustam-gamidov-here merged 1 commit into
heremaps:masterfrom
mzimonczyk-here:mzimonczyk/jniThreadBinder
Jul 14, 2026
Merged

Keep thread name after attaching it to JVM#1713
rustam-gamidov-here merged 1 commit into
heremaps:masterfrom
mzimonczyk-here:mzimonczyk/jniThreadBinder

Conversation

@mzimonczyk-here

Copy link
Copy Markdown
Contributor

When native thread is attached to JVM, then it's name is taken from JavaVMAttachArgs. When no JavaVMAttachArgs, or no JavaVMAttachArgs::name passed, then JVM on its own decides on naming thread. Those names are not descriptive. To preserve thread name, pass the currently set thread name in JavaVMAttachArgs::name.

@mzimonczyk-here mzimonczyk-here force-pushed the mzimonczyk/jniThreadBinder branch from 38bcbb4 to 45c955c Compare July 13, 2026 14:56
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.32%. Comparing base (8ce8ddc) to head (e4ba33e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1713      +/-   ##
==========================================
+ Coverage   80.30%   80.32%   +0.02%     
==========================================
  Files         356      356              
  Lines       14285    14285              
  Branches     1564     1564              
==========================================
+ Hits        11471    11474       +3     
  Misses       2182     2182              
+ Partials      632      629       -3     

see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mzimonczyk-here mzimonczyk-here force-pushed the mzimonczyk/jniThreadBinder branch 3 times, most recently from 79c8680 to 515264f Compare July 14, 2026 11:37
Comment thread olp-cpp-sdk-core/src/http/android/utils/JNIThreadBinder.h Outdated
When native thread is attached to JVM, then it's name is taken from
JavaVMAttachArgs. When no JavaVMAttachArgs, or no
JavaVMAttachArgs::name passed, then JVM on its own decides on naming
thread. Those names are not descriptive.

To preserve thread name, pass the currently set thread name in
JavaVMAttachArgs::name.

Relates-To: HNAV-15387

Signed-off-by: Michal Zimonczyk <ext-michal.zimonczyk@here.com>
@rustam-gamidov-here

Copy link
Copy Markdown
Collaborator

i assume @mzimonczyk-here is not able to merge as well as to trigger the pipelines, thus pressing the button for him

@rustam-gamidov-here rustam-gamidov-here merged commit 317d567 into heremaps:master Jul 14, 2026
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants