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

8313678: SymbolTable can leak Symbols during cleanup #1674

Conversation

olivergillespie
Copy link
Contributor

@olivergillespie olivergillespie commented Aug 18, 2023

Backporting fix for symbol table leak from https://bugs.openjdk.org/browse/JDK-8313678.

Not totally clean:

  • places where 17 uses NULL versus nullptr in tip, trivial fix
  • symbolTable uses Symbol** in 17 instead of Symbol*, also easy fix
  • dictionary.cpp is not a concurrent hash table in 17 (missing 8292680), so no need to modify it
  • finalizerService, g1CardSet, DynamicSharedSymbols test don't exist in 17

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-8313678: SymbolTable can leak Symbols during cleanup (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1674

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 18, 2023

👋 Welcome back ogillespie! 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 4b2703ad39f8160264eb30c797824cc93a6b56e2 8313678: SymbolTable can leak Symbols during cleanup Aug 18, 2023
@openjdk
Copy link

openjdk bot commented Aug 18, 2023

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 Aug 18, 2023
@mlbridge
Copy link

mlbridge bot commented Aug 18, 2023

Webrevs

Copy link
Member

@phohensee phohensee left a comment

Choose a reason for hiding this comment

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

Please file a 21u backport PR to go with this one.

Have you done testing other than GHA?

@olivergillespie
Copy link
Contributor Author

I tested that the new test fails without the patch, and passes with it. Nothing else.

Here's the 21 backport openjdk/jdk21u#73

@phohensee
Copy link
Member

Looks good. Please tag the JBS issue.

@openjdk
Copy link

openjdk bot commented Aug 21, 2023

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

8313678: SymbolTable can leak Symbols during cleanup

Reviewed-by: phh, 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 34 new commits pushed to the master branch:

  • d82de1c: 8314517: some tests fail in case ipv6 is disabled on the machine
  • 1d65a31: 8284772: GHA: Use GCC Major Version Dependencies Only
  • 47ed2e5: 8311033: [macos] PrinterJob does not take into account Sides attribute
  • 4c123ac: 8295737: macOS: Print content cut off when width > height with portrait orientation
  • 7286bb8: 8313815: The exception messages printed by jcmd ManagementAgent.start are corrupted on Japanese Windows
  • fdc4130: 8314426: runtime/os/TestTrimNative.java is failing on slow machines
  • 3c426c7: 8312525: New test runtime/os/TestTrimNative.java#trimNative is failing: did not see the expected RSS reduction
  • f667b35: 8293114: JVM should trim the native heap
  • 1421540: 8276651: java/lang/ProcessHandle tests fail with "RuntimeException: Input/output error" in java.lang.ProcessHandleImpl$Info.info0
  • d9985d0: 8314730: GHA: Drop libfreetype6-dev transitional package in favor of libfreetype-dev
  • ... and 24 more: https://git.openjdk.org/jdk17u-dev/compare/ca0f148681114b64ba0b40ea77b89a5e9bc68657...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 (@phohensee, @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 added the ready Pull request is ready to be integrated label Aug 21, 2023
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 looks fine.

Could you please check that the test addition is sensitive to this bug? I.e. locally revert every hunk except the test one, would the test fail then?

@olivergillespie
Copy link
Contributor Author

Thanks.

Could you please check that the test addition is sensitive to this bug? I.e. locally revert every hunk except the test one, would the test fail then?

Yes, confirmed.

@olivergillespie
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Aug 29, 2023
@openjdk
Copy link

openjdk bot commented Aug 29, 2023

@olivergillespie
Your change (at version 134adab) is now ready to be sponsored by a Committer.

@phohensee
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Aug 29, 2023

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

  • c91fb3f: 8313874: JNI NewWeakGlobalRef throws exception for null arg
  • 7ea65a0: Merge
  • 0f29caa: 8313765: Invalid CEN header (invalid zip64 extra data field size)
  • b31f232: 8314677: Bump update version for OpenJDK: jdk-17.0.8.1
  • d82de1c: 8314517: some tests fail in case ipv6 is disabled on the machine
  • 1d65a31: 8284772: GHA: Use GCC Major Version Dependencies Only
  • 47ed2e5: 8311033: [macos] PrinterJob does not take into account Sides attribute
  • 4c123ac: 8295737: macOS: Print content cut off when width > height with portrait orientation
  • 7286bb8: 8313815: The exception messages printed by jcmd ManagementAgent.start are corrupted on Japanese Windows
  • fdc4130: 8314426: runtime/os/TestTrimNative.java is failing on slow machines
  • ... and 28 more: https://git.openjdk.org/jdk17u-dev/compare/ca0f148681114b64ba0b40ea77b89a5e9bc68657...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Aug 29, 2023

@phohensee @olivergillespie Pushed as commit a75e5de.

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

@olivergillespie olivergillespie deleted the olivergillespie-backport-4b2703ad branch August 29, 2023 15:11
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
3 participants