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

8313394: Array Elements in OldObjectSample event has the incorrect description #15084

Closed
wants to merge 3 commits into from

Conversation

tkiriyama
Copy link
Contributor

@tkiriyama tkiriyama commented Jul 31, 2023

With this fix, arrayElements attribute in OldObjectSample event will be -1 if the object is not an array.
Could anyone please review this fix?


Progress

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

Issue

  • JDK-8313394: Array Elements in OldObjectSample event has the incorrect description (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 15084

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15084.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 31, 2023

👋 Welcome back tkiriyama! A progress list of the required criteria for merging this PR into master 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

openjdk bot commented Jul 31, 2023

@tkiriyama The following label will be automatically applied to this pull request:

  • hotspot-jfr

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the hotspot-jfr hotspot-jfr-dev@openjdk.org label Jul 31, 2023
@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 31, 2023
@mlbridge
Copy link

mlbridge bot commented Jul 31, 2023

Webrevs

@egahlin
Copy link
Member

egahlin commented Jul 31, 2023

A better fix is probably to update the description to match the implementation and change the JMC GUI to display integer min value as N/A, similar to the jfr tool and RecordedObject::toString().

There may be code that already relies on the current behavior and the min value is used to indicate N/A elsewhere.

@tkiriyama
Copy link
Contributor Author

Modifying the description is easier than the current fix.
If you are comfortable with the INT_MIN value being used, I agree with your suggestion. In that case, I will only fix the description and withdraw the submitted test in this pull request.
Do you know the workflow for changeing the JMC GUI?

@egahlin
Copy link
Member

egahlin commented Aug 2, 2023

If you are comfortable with the INT_MIN value being used, I agree with your suggestion. In that case, I will only fix the description and withdraw the submitted test in this pull request.

Sounds good.

Do you know the workflow for changeing the JMC GUI?

There is a wiki page:
https://wiki.openjdk.org/display/jmc/Main
Filing a bug on JMC is probably the first step.

@tkiriyama
Copy link
Contributor Author

Thank you for your advice. I modified the description to match the actual behavior.
After integrated this fix, I will report the issue on JMC.

@openjdk
Copy link

openjdk bot commented Aug 3, 2023

@tkiriyama 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:

8313394: Array Elements in OldObjectSample event has the incorrect description

Reviewed-by: egahlin

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 53 new commits pushed to the master branch:

  • d60352e: 8311006: missing @SInCE info in jdk.xml.dom
  • 4577147: 8313712: [BACKOUT] 8313632: ciEnv::dump_replay_data use fclose
  • bb3aac6: 8301606: JFileChooser file chooser details view "size" label cut off in Metal Look&Feel
  • 0f2fce7: 8313632: ciEnv::dump_replay_data use fclose
  • ab1c212: 8312909: C1 should not inline through interface calls with non-subtype receiver
  • c386091: 8312984: javac may crash on a record pattern with too few components
  • 3212b64: 8313582: Problemlist failing test on linux x86
  • bdac348: 8313602: increase timeout for jdk/classfile/CorpusTest.java
  • 58906bf: 4893524: Swing drop targets should call close() on transferred readers and streams
  • 3c920f9: 8313274: [BACKOUT] Relax prerequisites for java.base-jmod target
  • ... and 43 more: https://git.openjdk.org/jdk/compare/ad34be1f329edc8e7155983835cc70d733c014b8...master

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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@egahlin) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Aug 3, 2023
@egahlin
Copy link
Member

egahlin commented Aug 3, 2023

You may want to change the name of the bug so it says something about the incorrect description.

@tkiriyama tkiriyama changed the title 8313394: Array Elements in OldObjectSample event should be -1 if the object is not an array 8313394: Array Elements in OldObjectSample event has the incorrect description Aug 4, 2023
@tkiriyama
Copy link
Contributor Author

I see. I fixed the titles of the bug issue and this pull request.

@tkiriyama
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Aug 4, 2023
@openjdk
Copy link

openjdk bot commented Aug 4, 2023

@tkiriyama
Your change (at version 6a61e62) is now ready to be sponsored by a Committer.

@egahlin
Copy link
Member

egahlin commented Aug 4, 2023

/sponsor

@openjdk
Copy link

openjdk bot commented Aug 4, 2023

Going to push as commit e8c325d.
Since your change was applied there have been 53 commits pushed to the master branch:

  • d60352e: 8311006: missing @SInCE info in jdk.xml.dom
  • 4577147: 8313712: [BACKOUT] 8313632: ciEnv::dump_replay_data use fclose
  • bb3aac6: 8301606: JFileChooser file chooser details view "size" label cut off in Metal Look&Feel
  • 0f2fce7: 8313632: ciEnv::dump_replay_data use fclose
  • ab1c212: 8312909: C1 should not inline through interface calls with non-subtype receiver
  • c386091: 8312984: javac may crash on a record pattern with too few components
  • 3212b64: 8313582: Problemlist failing test on linux x86
  • bdac348: 8313602: increase timeout for jdk/classfile/CorpusTest.java
  • 58906bf: 4893524: Swing drop targets should call close() on transferred readers and streams
  • 3c920f9: 8313274: [BACKOUT] Relax prerequisites for java.base-jmod target
  • ... and 43 more: https://git.openjdk.org/jdk/compare/ad34be1f329edc8e7155983835cc70d733c014b8...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Aug 4, 2023
@openjdk openjdk bot closed this Aug 4, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Aug 4, 2023
@openjdk
Copy link

openjdk bot commented Aug 4, 2023

@egahlin @tkiriyama Pushed as commit e8c325d.

💡 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
hotspot-jfr hotspot-jfr-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants