-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for a couple of issues found when running with check:jni enabled
1. Add -Xcheck:jni to the Java test suite build to help catch issues during test runs 2. In PrimitiveArray::fromCpp, when unlocking the Java array with ReleasePrimitiveArrayCritical(), ensure any internal copies of the data are written back to the original. A JVM _might_ make a copy of the data when locking, the check:jni mode forces a copy to help catch when copies aren't written back. 3. A couple of places in the test suite where native->Java method calls are made but the exception state is not checked on return.
- Loading branch information
1 parent
04e8687
commit d4b3ae0
Showing
4 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters