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

Ensure boolean JNI methods on x86 produce a result of zero or one #4086

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

hzongaro
Copy link
Member

In calling a JNI boolean method, if the native implementation returns
zero, the result is false; if it returns a non-zero value, the result
is true.

This behaviour is consistent with the reference implementation.

Progresses issue #2049

Signed-off-by: Henry Zongaro zongaro@ca.ibm.com

@hzongaro hzongaro changed the title WIP - Ensure boolean JNI methods produce a result of zero or one Ensure boolean JNI methods produce a result of zero or one Dec 19, 2018
In calling a JNI boolean method, if the native implementation returns
zero, the result is false; if it returns a non-zero value, the result
is true.

This behaviour is consistent with the reference implementation.

Progresses issue eclipse-openj9#2049

Signed-off-by:  Henry Zongaro <zongaro@ca.ibm.com>
@andrewcraik
Copy link
Contributor

@0dvictor can you review the x86 changes please?

Copy link
Contributor

@0dvictor 0dvictor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrewcraik
Copy link
Contributor

Jenkins test sanity xlinux,win jdk8,jdk11

@hzongaro
Copy link
Member Author

I will collapse these changes into a single commit

@andrewcraik
Copy link
Contributor

Jenkins test sanity xlinux,win jdk8,jdk11

@andrewcraik
Copy link
Contributor

@fjeremic and @gita-omr FYI that there is a small linkage tweak needed for direct JNI spec compliance

@hzongaro hzongaro changed the title Ensure boolean JNI methods produce a result of zero or one Ensure boolean JNI methods on x86 produce a result of zero or one Jan 3, 2019
@andrewcraik
Copy link
Contributor

No new sanity failures - merging

@andrewcraik andrewcraik merged commit dabbfd6 into eclipse-openj9:master Jan 9, 2019
@hzongaro hzongaro deleted the jni-bool branch January 18, 2019 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants