Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

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

Closed

Conversation

minborg
Copy link
Contributor

@minborg minborg commented Apr 8, 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

  • 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/jdk22u.git pull/131/head:pull/131
$ git checkout pull/131

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 131

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk22u/pull/131.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 8, 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 Apr 8, 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: shade

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

  • ca393c8: 8330576: ZYoungCompactionLimit should have range check
  • 66cdc14: 8329958: Windows x86 build fails: downcallLinker.cpp(36) redefinition
  • 70bd2c7: 8328075: Shenandoah: Avoid forwarding when objects don't move in full-GC
  • f867d97: 8331746: Create a test to verify that the cmm id is not ignored
  • 3ed85b9: 8316328: Test jdk/jfr/event/oldobject/TestSanityDefault.java times out for some heap sizes
  • 851922d: 8331164: createJMHBundle.sh download jars fail when url needed to be redirected
  • 3663b2d: 8327501: Common ForkJoinPool prevents class unloading in some cases
  • b96b4f6: 8332490: JMH org.openjdk.bench.java.util.zip.InflaterInputStreams.inflaterInputStreamRead OOM
  • 5a659b7: 8326446: The User and System of jdk.CPULoad on Apple M1 are inaccurate
  • e32e05b: 8329840: Fix ZPhysicalMemorySegment::_end type
  • ... and 94 more: https://git.openjdk.org/jdk22u/compare/92d6fa4abec1fdf8e57723e4490be0ba4f97e59d...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 (@shipilev) 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 Apr 8, 2024
@openjdk
Copy link

openjdk bot commented Apr 8, 2024

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

@openjdk
Copy link

openjdk bot commented Apr 8, 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.

@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 8, 2024
@mlbridge
Copy link

mlbridge bot commented Apr 8, 2024

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented May 6, 2024

@minborg This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@minborg
Copy link
Contributor Author

minborg commented May 6, 2024

Please review this PR.

@minborg
Copy link
Contributor Author

minborg commented May 16, 2024

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

@openjdk
Copy link

openjdk bot commented May 16, 2024

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

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

@shipilev shipilev left a comment

Choose a reason for hiding this comment

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

This PR is clean, so it does not nominally requires review. You have maintainer approval for it, so it can go in.

@minborg
Copy link
Contributor Author

minborg commented May 30, 2024

/integrate

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

openjdk bot commented May 30, 2024

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

@shipilev
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented May 30, 2024

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

  • ca393c8: 8330576: ZYoungCompactionLimit should have range check
  • 66cdc14: 8329958: Windows x86 build fails: downcallLinker.cpp(36) redefinition
  • 70bd2c7: 8328075: Shenandoah: Avoid forwarding when objects don't move in full-GC
  • f867d97: 8331746: Create a test to verify that the cmm id is not ignored
  • 3ed85b9: 8316328: Test jdk/jfr/event/oldobject/TestSanityDefault.java times out for some heap sizes
  • 851922d: 8331164: createJMHBundle.sh download jars fail when url needed to be redirected
  • 3663b2d: 8327501: Common ForkJoinPool prevents class unloading in some cases
  • b96b4f6: 8332490: JMH org.openjdk.bench.java.util.zip.InflaterInputStreams.inflaterInputStreamRead OOM
  • 5a659b7: 8326446: The User and System of jdk.CPULoad on Apple M1 are inaccurate
  • e32e05b: 8329840: Fix ZPhysicalMemorySegment::_end type
  • ... and 94 more: https://git.openjdk.org/jdk22u/compare/92d6fa4abec1fdf8e57723e4490be0ba4f97e59d...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented May 30, 2024

@shipilev @minborg Pushed as commit 91a2e75.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport clean integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants