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

run test suite with 'Xcheck:jni' JVM argument #1734

Merged
merged 2 commits into from
Jan 27, 2024
Merged

run test suite with 'Xcheck:jni' JVM argument #1734

merged 2 commits into from
Jan 27, 2024

Conversation

sullis
Copy link
Contributor

@sullis sullis commented Jan 26, 2024

Motivation

We should run our testsuite with '-Xcheck:jni' to ensure we catch bugs in 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

Tweet from Norman Maurer (September 2023)

image

JDK documentation

https://docs.oracle.com/en/java/javase/21/docs/specs/man/java.html

Run the test suite with "check:jni" so that we can
detect any crtitical JNI problems
@sullis sullis changed the title run test suite with 'check:jni' JVM argument run test suite with 'Xcheck:jni' JVM argument Jan 27, 2024
@sullis sullis merged commit 94cf822 into master Jan 27, 2024
5 checks passed
@sullis sullis deleted the check-jni-ftw branch January 27, 2024 01:12
argha-c pushed a commit that referenced this pull request Sep 10, 2024
Run the test suite with "Xcheck:jni" so that we can
detect any critical JNI problems
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