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

8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment #404

Closed
wants to merge 1 commit into from

Conversation

minborg
Copy link
Contributor

@minborg minborg commented Mar 25, 2024

Hi all,

This pull request contains a backport of commit 93579c29 from the openjdk/jdk repository.

The commit being backported was authored by Per Minborg on 25 Mar 2024 and was reviewed by Maurizio Cimadamore.

Thanks!


Progress

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

Issue

  • JDK-8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment (Bug - P4 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/404/head:pull/404
$ git checkout pull/404

Update a local copy of the PR:
$ git checkout pull/404
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/404/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 404

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/404.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 25, 2024

👋 Welcome back pminborg! 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 Mar 25, 2024

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

8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment

Reviewed-by: mdoerr

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

  • 0dcbc1d: 8324668: JDWP process management needs more efficient file descriptor handling
  • 42e6a97: 8323670: A few client tests intermittently throw ConcurrentModificationException
  • 55e97ce: 8319773: Avoid inflating monitors when installing hash codes for LM_LIGHTWEIGHT
  • b56f0c0: 8326106: Write and clear stack trace table outside of safepoint
  • 8d4f686: 8312229: Crash involving yield, switch and anonymous classes
  • 2a21044: 8331573: Rename CollectedHeap::is_gc_active to be explicitly about STW GCs
  • 362ecac: 8331164: createJMHBundle.sh download jars fail when url needed to be redirected
  • dc8b95f: 8328075: Shenandoah: Avoid forwarding when objects don't move in full-GC
  • 9971c63: 8307788: vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java timed out
  • 97c01b1: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab
  • ... and 214 more: https://git.openjdk.org/jdk21u-dev/compare/3050bf3bd034b6b68a9c8fe09060c4e0a5472785...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 (@TheRealMDoerr) 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 changed the title Backport 93579c29e3ba60a8bc16d712e7ffc733f324a223 8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment Mar 25, 2024
@openjdk
Copy link

openjdk bot commented Mar 25, 2024

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Mar 25, 2024
@mlbridge
Copy link

mlbridge bot commented Mar 25, 2024

Webrevs

@shipilev
Copy link
Member

Hey @minborg! Please enable GHA for your jdk21u-dev fork and trigger it :)

@shipilev
Copy link
Member

Hey @minborg :) Are you planning to complete this one, or need someone else to take over?

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

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

Ok, this is basically a clean backport + Copyright header fix.

@openjdk
Copy link

openjdk bot commented May 13, 2024

⚠️ @minborg This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@minborg
Copy link
Contributor Author

minborg commented May 14, 2024

/approval request This is a clean backport of a bug discovered in 22

@openjdk
Copy link

openjdk bot commented May 14, 2024

@minborg
8323552: The approval request has been created successfully.

@openjdk openjdk bot added approval and removed approval labels May 14, 2024
@TheRealMDoerr
Copy link
Contributor

This one is ready for integration.

@minborg
Copy link
Contributor Author

minborg commented May 30, 2024

This one is ready for integration.

It appears JDK-8323552 is not approved by the maintainer.

@shipilev
Copy link
Member

It appears JDK-8323552 is not approved by the maintainer.

Looks like Christoph wanted 22u backport first. Feel free to re-request the approval. Probably just put jdk21u-fix-request label back?

@openjdk openjdk bot added the approval label May 30, 2024
@TheRealMDoerr
Copy link
Contributor

Right, the approval has been revoked. I have rerequested it by adding the label.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels May 31, 2024
@shipilev
Copy link
Member

Now you should be fine to integrate, @minborg!

@minborg
Copy link
Contributor Author

minborg commented May 31, 2024

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label May 31, 2024
@openjdk
Copy link

openjdk bot commented May 31, 2024

@minborg
Your change (at version 3ef0f63) is now ready to be sponsored by a Committer.

@TheRealMDoerr
Copy link
Contributor

/sponsor

@openjdk
Copy link

openjdk bot commented May 31, 2024

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

  • 0dcbc1d: 8324668: JDWP process management needs more efficient file descriptor handling
  • 42e6a97: 8323670: A few client tests intermittently throw ConcurrentModificationException
  • 55e97ce: 8319773: Avoid inflating monitors when installing hash codes for LM_LIGHTWEIGHT
  • b56f0c0: 8326106: Write and clear stack trace table outside of safepoint
  • 8d4f686: 8312229: Crash involving yield, switch and anonymous classes
  • 2a21044: 8331573: Rename CollectedHeap::is_gc_active to be explicitly about STW GCs
  • 362ecac: 8331164: createJMHBundle.sh download jars fail when url needed to be redirected
  • dc8b95f: 8328075: Shenandoah: Avoid forwarding when objects don't move in full-GC
  • 9971c63: 8307788: vmTestbase/gc/gctests/LargeObjects/large003/TestDescription.java timed out
  • 97c01b1: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab
  • ... and 214 more: https://git.openjdk.org/jdk21u-dev/compare/3050bf3bd034b6b68a9c8fe09060c4e0a5472785...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 31, 2024
@openjdk openjdk bot closed this May 31, 2024
@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 May 31, 2024
@openjdk
Copy link

openjdk bot commented May 31, 2024

@TheRealMDoerr @minborg Pushed as commit 0d9833e.

💡 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
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants