Skip to content

Fix IsSameObject() to handle value objects - #23817

Merged
hangshao0 merged 1 commit into
eclipse-openj9:masterfrom
AditiS11:TestJNIIsSameObject
Apr 27, 2026
Merged

Fix IsSameObject() to handle value objects#23817
hangshao0 merged 1 commit into
eclipse-openj9:masterfrom
AditiS11:TestJNIIsSameObject

Conversation

@AditiS11

Copy link
Copy Markdown

-Ensure value objects equality check is done
using valueTypeCapableAcmp() in IsSameObject().

This change is required for runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Passing Test: https://hyc-runtimes-jenkins.swg-devops.com/view/Test_grinder/job/Grinder/59811/testReport/runtime_valhalla_inlinetypes_TestJNIIsSameObject/

@theresa-m theresa-m added comp:vm project:valhalla Used to track Project Valhalla related work labels Apr 24, 2026
Comment thread runtime/vm/jnimisc.cpp
jboolean JNICALL
isSameObject(JNIEnv *env, jobject ref1, jobject ref2)
{
jboolean result = JNI_TRUE;

@theresa-m theresa-m Apr 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can just call valueTypeCapableAcmp without additional checks for the J9VM_OPT_VALHALLA_VALUE_TYPES case. valueTypeCapableAcmp handles all these cases already.

-Ensure value objects equality check is done
using valueTypeCapableAcmp() in IsSameObject().

Signed-off-by: Aditi Srinivas M <Aditi.Srini@ibm.com>
@AditiS11
AditiS11 force-pushed the TestJNIIsSameObject branch from 6a1c537 to 1ae92e0 Compare April 27, 2026 06:19
@theresa-m
theresa-m requested a review from hangshao0 April 27, 2026 14:05
@hangshao0

Copy link
Copy Markdown
Contributor

Jenkins test sanity.functional,extended plinuxval jdknext

@github-project-automation github-project-automation Bot moved this from TODO: VM to Reviewer approved in Valhalla L-World Apr 27, 2026
@hangshao0
hangshao0 merged commit 5706309 into eclipse-openj9:master Apr 27, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Valhalla L-World Apr 27, 2026
AditiS11 added a commit to AditiS11/aqa-tests that referenced this pull request Apr 28, 2026
Enable TestJNIIsSameObject
Fixed by: eclipse-openj9/openj9#23817
AditiS11 added a commit to AditiS11/aqa-tests that referenced this pull request Apr 28, 2026
Enable runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Fixed by: eclipse-openj9/openj9#23817
AditiS11 added a commit to AditiS11/aqa-tests that referenced this pull request Apr 28, 2026
Enable runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Fixed by: eclipse-openj9/openj9#23817
AditiS11 added a commit to AditiS11/aqa-tests that referenced this pull request Apr 28, 2026
Enable runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Fixed by: eclipse-openj9/openj9#23817
AditiS11 added a commit to AditiS11/aqa-tests that referenced this pull request Apr 28, 2026
Enable runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Fixed by: eclipse-openj9/openj9#23817
AditiS11 added a commit to AditiS11/aqa-tests that referenced this pull request Apr 28, 2026
Enable runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Fixed by: eclipse-openj9/openj9#23817
AditiS11 added a commit to AditiS11/aqa-tests that referenced this pull request Apr 28, 2026
Enable runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Fixed by: eclipse-openj9/openj9#23817
pshipton pushed a commit to adoptium/aqa-tests that referenced this pull request Apr 28, 2026
Enable runtime/valhalla/inlinetypes/TestJNIIsSameObject.java
Fixed by: eclipse-openj9/openj9#23817
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:vm project:valhalla Used to track Project Valhalla related work

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants