Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.x] Android: Fix access to JavaVM for threads after #45618 #47682

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented Apr 6, 2021

  • checking for validity of ENV in wrapper classes
  • fix for access to JavaVM from threads

(cherry picked from commit b3a4343)

Fixes #46832. Thanks @hpvb and @RandomShaper from identifying it.

Will test ASAP to confirm if it works. (CC @BastiaanOlij)
Edit: Tested and confirmed the fix 👍

Note that there are still unchecked get_jni_env() calls in the codebase after this PR (both in master and 3.2). Not sure if all should be guarded or if get_jni_env() can be fixed to always give a valid pointer.

- checking for validity of ENV in wrapper classes
- fix for access to JavaVM from threads

(cherry picked from commit b3a4343)
@akien-mga akien-mga added this to the 3.3 milestone Apr 6, 2021
@akien-mga akien-mga requested a review from a team as a code owner April 6, 2021 20:05
@akien-mga akien-mga changed the title Fixes on android: [3.x] Android: Fix access to JavaVM for threads after #45618 Apr 6, 2021
@hpvb hpvb self-requested a review April 6, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants