Skip to content

8379365: [lworld] Add new JNI method IsValueObject(jobject value)#2203

Closed
dholmes-ora wants to merge 11 commits intoopenjdk:lworldfrom
dholmes-ora:8379365-IsValueObject
Closed

8379365: [lworld] Add new JNI method IsValueObject(jobject value)#2203
dholmes-ora wants to merge 11 commits intoopenjdk:lworldfrom
dholmes-ora:8379365-IsValueObject

Conversation

@dholmes-ora
Copy link
Copy Markdown
Member

@dholmes-ora dholmes-ora commented Mar 6, 2026

This PR adds a new JNI IsValueObject method so that native code can query is an object is an instance of a value class.

This will require a bump of the JNI version number once we are out of preview.

Added a simple functional test.

Manually tested with -Xcheck:jni as well

tiers 1-3 sanity testing

Thanks


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JDK-8379365: [lworld] Add new JNI method IsValueObject(jobject value) (Enhancement - P3)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2203/head:pull/2203
$ git checkout pull/2203

Update a local copy of the PR:
$ git checkout pull/2203
$ git pull https://git.openjdk.org/valhalla.git pull/2203/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2203

View PR using the GUI difftool:
$ git pr show -t 2203

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2203.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Mar 6, 2026

👋 Welcome back dholmes! A progress list of the required criteria for merging this PR into lworld will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Mar 6, 2026

@dholmes-ora This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8379365: [lworld] Add new JNI method IsValueObject(jobject value)

Reviewed-by: phubner

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 108 new commits pushed to the lworld branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the lworld branch, type /integrate in a new comment.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Mar 6, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Mar 6, 2026

Webrevs

@dholmes-ora dholmes-ora marked this pull request as draft March 6, 2026 03:05
@openjdk openjdk Bot removed the rfr Pull request is ready for review label Mar 6, 2026
@dholmes-ora dholmes-ora marked this pull request as ready for review March 6, 2026 04:23
@openjdk openjdk Bot added the rfr Pull request is ready for review label Mar 6, 2026
@dholmes-ora dholmes-ora marked this pull request as draft March 6, 2026 05:13
@openjdk openjdk Bot removed the rfr Pull request is ready for review label Mar 6, 2026
@dholmes-ora dholmes-ora marked this pull request as ready for review March 9, 2026 06:52
@openjdk openjdk Bot added the rfr Pull request is ready for review label Mar 9, 2026
@dholmes-ora
Copy link
Copy Markdown
Member Author

Reverted the version change as that comes after the preview cycle.
Added test case files.
Added DTrace probes

Copy link
Copy Markdown
Member

@Arraying Arraying left a comment

Choose a reason for hiding this comment

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

Thanks for the work! The test and change looks good, I left a question to make sure that we are considering the correct semantics.

Comment thread src/hotspot/share/prims/jni.cpp
Copy link
Copy Markdown
Member

@Arraying Arraying left a comment

Choose a reason for hiding this comment

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

Looks good! Sorry for the confusion.

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label Mar 11, 2026
@dholmes-ora
Copy link
Copy Markdown
Member Author

/integrate

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Mar 11, 2026

Going to push as commit b9a1691.
Since your change was applied there have been 112 commits pushed to the lworld branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label Mar 11, 2026
@openjdk openjdk Bot closed this Mar 11, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 11, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Mar 11, 2026

@dholmes-ora Pushed as commit b9a1691.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

2 participants