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

rcbridge: Avoid calling Android functions over JNI #62

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

chenxiaolong
Copy link
Owner

Since go 1.22.5, this results in a panic. There is an upstream bug report at [1] for musl, but the same thing happens with bionic. The same fix of using pthread_getattr_np() on bionic also works, but it's better to avoid needing folks to recompile the go toolchain.

We were just using these calls as a small hack to pass a list of structs to the Java side, which we can easily do another way.

[1] golang/go#68285

Since go 1.22.5, this results in a panic. There is an upstream bug
report at [1] for musl, but the same thing happens with bionic. The same
fix of using pthread_getattr_np() on bionic also works, but it's better
to avoid needing folks to recompile the go toolchain.

We were just using these calls as a small hack to pass a list of structs
to the Java side, which we can easily do another way.

[1] golang/go#68285

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Jul 20, 2024
chenxiaolong added a commit that referenced this pull request Jul 20, 2024
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong merged commit db6f1ac into master Jul 20, 2024
@chenxiaolong chenxiaolong deleted the avoid-jni-calls branch July 20, 2024 01:50
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.

1 participant