Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

8311647: Memory leak in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ttyname_1r #126

Closed
wants to merge 1 commit into from
Closed

Conversation

shipilev
Copy link
Member

@shipilev shipilev commented Jul 14, 2023

Clean backport to fix a memory leak introduced in JDK 21.


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-8311647: Memory leak in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ttyname_1r (Bug - P3)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 126

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21/pull/126.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 14, 2023

👋 Welcome back shade! 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 openjdk bot changed the title Backport 43099a85b16f036666d4e93106d2908ad75f9216 8311647: Memory leak in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ttyname_1r Jul 14, 2023
@openjdk
Copy link

openjdk bot commented Jul 14, 2023

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

@openjdk openjdk bot added backport clean rfr Pull request is ready for review labels Jul 14, 2023
@openjdk
Copy link

openjdk bot commented Jul 14, 2023

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

  • kulla

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 kulla kulla-dev@openjdk.org label Jul 14, 2023
@mlbridge
Copy link

mlbridge bot commented Jul 14, 2023

Webrevs

@openjdk
Copy link

openjdk bot commented Jul 14, 2023

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

8311647: Memory leak in Java_jdk_internal_org_jline_terminal_impl_jna_linux_CLibraryImpl_ttyname_1r

Reviewed-by: rriggs

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

  • c199b8c: 8303134: JFR: Missing stack trace during chunk rotation stress
  • fd949c7: 8244289: fatal error: Possible safepoint reached by thread that does not allow it
  • 281aee9: 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
  • d370b96: 6960866: [Fmt-Ch] ChoiceFormat claims impossible and unimplemented functionality
  • b4f19f5: 8306785: fix deficient spliterators for Sequenced Collections
  • 65ed787: 8294401: Update jfr man page to include recently added features
  • 2475bba: 8311536: JFR TestNativeMemoryUsageEvents fails in huge pages configuration
  • 99d87e9: 8311645: Memory leak in jspawnhelper spawnChild after JDK-8307990
  • d174dde: 8311092: Please disable runtime/jni/nativeStack/TestNativeStack.java on armhf
  • f792475: 8303279: C2: crash in SubTypeCheckNode::sub() at IGVN split if

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jul 14, 2023
@shipilev
Copy link
Member Author

Thanks! The x86_32 test failure is unrelated.

/integrate

@openjdk
Copy link

openjdk bot commented Jul 14, 2023

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

  • c199b8c: 8303134: JFR: Missing stack trace during chunk rotation stress
  • fd949c7: 8244289: fatal error: Possible safepoint reached by thread that does not allow it
  • 281aee9: 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
  • d370b96: 6960866: [Fmt-Ch] ChoiceFormat claims impossible and unimplemented functionality
  • b4f19f5: 8306785: fix deficient spliterators for Sequenced Collections
  • 65ed787: 8294401: Update jfr man page to include recently added features
  • 2475bba: 8311536: JFR TestNativeMemoryUsageEvents fails in huge pages configuration
  • 99d87e9: 8311645: Memory leak in jspawnhelper spawnChild after JDK-8307990
  • d174dde: 8311092: Please disable runtime/jni/nativeStack/TestNativeStack.java on armhf
  • f792475: 8303279: C2: crash in SubTypeCheckNode::sub() at IGVN split if

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Jul 14, 2023

@shipilev Pushed as commit 49479db.

💡 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 kulla kulla-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

2 participants