Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

JNI_OnLoad should never detach its thread #446

@alexcohn

Description

@alexcohn

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions