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

Use '-Xcheck:jni' during testsuite run to detect JNI bugs #107

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

sullis
Copy link
Contributor

@sullis sullis commented Oct 2, 2023

Motivation:

We should run our testsuite with '-Xcheck:jni' to ensure we catch bugs in our JNI code which could later cause issues like crashes

Modifications:

Add -Xcheck:jni

Result:

Testsuite will be able to catch more JNI bugs

Related work:

This PR was inspired by a Netty PR:
netty/netty#13642

Related tweet:

image

@hyperxpro hyperxpro merged commit 8676fba into hyperxpro:main Oct 2, 2023
16 checks passed
@hyperxpro
Copy link
Owner

Thanks a lot! :)

@sullis sullis deleted the surefire-check-jni branch October 2, 2023 19:00
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.

2 participants