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

8299790: os::print_hex_dump is racy #824

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tstuefe
Copy link
Member

@tstuefe tstuefe commented Jul 4, 2024

Hi all,

This pull request contains a backport of commit 8f28809a from the openjdk/jdk repository.

The commit being backported was authored by Thomas Stuefe on 10 Aug 2023 and was reviewed by Aleksey Shipilev and David Holmes.

Thanks!


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8299790 needs maintainer approval

Issue

  • JDK-8299790: os::print_hex_dump is racy (Bug - P4 - Requested)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 824

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 4, 2024

👋 Welcome back stuefe! 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 4, 2024

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport 8f28809aa87b1026cdbdd1ea88da3c7f0c994697 8299790: os::print_hex_dump is racy Jul 4, 2024
@openjdk
Copy link

openjdk bot commented Jul 4, 2024

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

@tstuefe tstuefe marked this pull request as ready for review July 11, 2024 06:55
@openjdk
Copy link

openjdk bot commented Jul 11, 2024

⚠️ @tstuefe 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 Jul 11, 2024
@mlbridge
Copy link

mlbridge bot commented Jul 11, 2024

Webrevs

@tstuefe
Copy link
Member Author

tstuefe commented Jul 11, 2024

/approval request I would like to downport this fix since this is a bug (admittedly, with limited consequences: printing potentially unreadable sections should only done during hs-err printing, so all it would do is mess up hs-err files). But it is also a prerequisite for downporting JDK-8334738, which would be very useful to have, e.g. in the context of dealing with reproducible builds and CDS dumps.

The fix itself is low risk, but it introduced a test error for big-endian platforms, which was fixed subsequently with https://bugs.openjdk.org/browse/JDK-8314163. I will backport that one without delay once this patch is pushed.

@openjdk
Copy link

openjdk bot commented Jul 11, 2024

@tstuefe
8299790: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval backport clean rfr Pull request is ready for review
1 participant