Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

JNI_OnLoad should never detach its thread #446

Closed
alexcohn opened this issue Jun 9, 2020 · 2 comments
Closed

JNI_OnLoad should never detach its thread #446

alexcohn opened this issue Jun 9, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request fixed

Comments

@alexcohn
Copy link
Contributor

alexcohn commented Jun 9, 2020

Description
In JNI_OnLoad() there are three error cases 1, 2, 3 that call DetachCurrentThread() (when some really nasty error happens).

Expected behavior
Only threads that are created from C may be detached.

Current behavior
The thread was created by JVM, so it should not be detached in JNI.

Environment

  • Platform: Android
  • Architecture: any
  • Version: v1.2
  • Source branch: master, and others
@tanersener
Copy link
Owner

Thanks, fixed in development.

@tanersener tanersener self-assigned this Jun 28, 2020
@tanersener
Copy link
Owner

Released in v4.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request fixed
Projects
None yet
Development

No branches or pull requests

2 participants