Skip to content

Conversation

@jyma22
Copy link

@jyma22 jyma22 commented Sep 25, 2025

Hi all,

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

The commit being backported was authored by Johan Sjölen on Apr 24 2023 and was reviewed by Vladimir Kozlov and Roland Westrelin.

Testing: jtreg tier 1

Thanks!


Progress

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

Issue

  • JDK-8306444: Don't leak memory in PhaseChaitin::PhaseChaitin (Enhancement - P4 - Rejected)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3992

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Sep 25, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 25, 2025

Hi @jyma22, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user jyma22" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk
Copy link

openjdk bot commented Sep 25, 2025

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

@jyma22
Copy link
Author

jyma22 commented Sep 25, 2025

/signed

@bridgekeeper bridgekeeper bot added the oca-verify Needs verification of OCA signatory status label Sep 25, 2025
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 25, 2025

Thank you! Please allow for up to two weeks to process your OCA, although it is usually done within one to two business days. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated!

@jyma22 jyma22 changed the title Backport <b2ccc9731e3a183bc6f31480c7d12f110633ea2b> Backport b2ccc9731e3a183bc6f31480c7d12f110633ea2b Oct 29, 2025
@openjdk openjdk bot changed the title Backport b2ccc9731e3a183bc6f31480c7d12f110633ea2b 8306444: Don't leak memory in PhaseChaitin::PhaseChaitin Oct 29, 2025
@openjdk
Copy link

openjdk bot commented Oct 29, 2025

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

@openjdk openjdk bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required labels Oct 29, 2025
@bridgekeeper bridgekeeper bot removed oca Needs verification of OCA signatory status oca-verify Needs verification of OCA signatory status labels Oct 29, 2025
@jyma22 jyma22 marked this pull request as ready for review November 17, 2025 18:59
@openjdk
Copy link

openjdk bot commented Nov 17, 2025

⚠️ @jyma22 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 Nov 17, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 17, 2025

Webrevs

@openjdk
Copy link

openjdk bot commented Nov 17, 2025

@jyma22 usage: /approval [<id>] (request|cancel) [<text>]

@jyma22
Copy link
Author

jyma22 commented Nov 17, 2025

/approval request optimizes PhaseChaitin's memory usage by freeing temporary sorting arrays early and eliminating the _blks array allocation by consolidating sorted blocks directly into the first bucket using memmove

@openjdk
Copy link

openjdk bot commented Nov 17, 2025

@jyma22
8306444: The approval request has been created successfully.

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Nov 17, 2025
@openjdk openjdk bot removed the approval Requires approval; will be removed when approval is received label Nov 19, 2025
@jyma22
Copy link
Author

jyma22 commented Nov 20, 2025

Fix Request 17u

Backporting this patch optimizes PhaseChaitin's memory usage by freeing temporary sorting arrays early and eliminating the _blks array allocation by consolidating sorted blocks directly into the first bucket using memmove.
Path applies cleanly to 17u and doesn't require adjustments.
Included test passes. Ran tier1.

@jyma22
Copy link
Author

jyma22 commented Nov 26, 2025

/approval request Backporting this patch optimizes PhaseChaitin's memory usage by freeing temporary sorting arrays early and eliminating the _blks array allocation by consolidating sorted blocks directly into the first bucket using memmove.
Path applies cleanly to 17u and doesn't require adjustments.
Included test passes. Ran tier1.

@openjdk
Copy link

openjdk bot commented Nov 26, 2025

@jyma22
8306444: Approval has already been requested and rejected.

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

Labels

backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants