Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HERESDK-3466: Preserve thread name after attaching it to JVM (#1597)
* HERESDK-3466: Preserve thread name after attaching it to JVM 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 taming thread. Those names are not descriptive. To preserve thread name, pass the currently set thread name in `JavaVMAttachArgs::name`. `pthread_getname_np` was introduced in API 26, hence use more generic approach. --------- Signed-off-by: Mykhailo Diachenko <ext-mykhailo.z.diachenko@here.com>
- Loading branch information