jfx icon indicating copy to clipboard operation
jfx copied to clipboard

8279214: Memory leak in Scene after dragging a cell

Open Maran23 opened this issue 2 years ago • 2 comments

This PR fixes a memory leak in dnd code in the MouseHandler of a Scene. The memory leak occurs after calling startFullDrag(). The fullPDRTmpTargetWrapper is then populated but never cleared. Fix is to call clear() on the fullPDRTmpTargetWrapper, very similar to https://github.com/openjdk/jfx/pull/448 (JDK-8264330).


Progress

  • [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8279214: Memory leak in Scene after dragging a cell

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 899

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/899.diff

Maran23 avatar Sep 14 '22 18:09 Maran23

:wave: Welcome back mhanl! 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.

bridgekeeper[bot] avatar Sep 14 '22 18:09 bridgekeeper[bot]

Webrevs

mlbridge[bot] avatar Sep 14 '22 18:09 mlbridge[bot]

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

8279214: Memory leak in Scene after dragging a cell

Reviewed-by: angorya, arapte

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

  • 9819d45bb1eb63253be5e951c6e10a779dc71a1e: 8297332: Remove easy warnings in javafx.base
  • 086dac0b12233f31db33bb9fc43d821724710f70: 8297213: Robot capture tests should move mouse to corner of screen
  • e3e0dfdb1b945844691c79e512dbae285027ff6c: 8297166: [TestBug] Fix some ignored unit test from TableViewTest
  • 626227dc1029a0d984f2ed89a4397954bd71d676: 8296330: Tests: Add layout container snapping tests
  • 1ec06a80d13c8a33a1e998baa9942fbfc5035432: 8206430: Use consistent pattern for startup in FX system tests
  • 74af45d69828bf5bd8cea5b7fbf8e8c6cac4f689: 8296556: Mark two RobotTest methods as unstable on HiDPI Windows systems
  • 6cc9c4d1b9a46432f1568a54d7dcdf51e224559b: 8297042: gradle -PBUILD_SDK_FOR_TEST=false fails with gradle 7.6
  • a13630fba8854b84516a089ff67e4c0c4c01ff79: 8268877: TextInputControlSkin: incorrect inputMethod event handler after switching skin
  • 7ec0852cca60a4093db0f68cf91da1291a9cf978: 8291853: [CSS] ClassCastException in CssStyleHelper calculateValue
  • 595695020cf46737a9790fb5638252d3e4a6fdad: 8285503: SwingNodeDnDMemoryLeakTest::testSwingNodeMemoryLeak fails sometimes
  • ... and 26 more: https://git.openjdk.org/jfx/compare/28f8fa9c20363ced9a94787ecfd45735b3e6b82e...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.

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

openjdk[bot] avatar Nov 22 '22 09:11 openjdk[bot]

/integrate

Maran23 avatar Nov 22 '22 09:11 Maran23

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

  • 9819d45bb1eb63253be5e951c6e10a779dc71a1e: 8297332: Remove easy warnings in javafx.base
  • 086dac0b12233f31db33bb9fc43d821724710f70: 8297213: Robot capture tests should move mouse to corner of screen
  • e3e0dfdb1b945844691c79e512dbae285027ff6c: 8297166: [TestBug] Fix some ignored unit test from TableViewTest
  • 626227dc1029a0d984f2ed89a4397954bd71d676: 8296330: Tests: Add layout container snapping tests
  • 1ec06a80d13c8a33a1e998baa9942fbfc5035432: 8206430: Use consistent pattern for startup in FX system tests
  • 74af45d69828bf5bd8cea5b7fbf8e8c6cac4f689: 8296556: Mark two RobotTest methods as unstable on HiDPI Windows systems
  • 6cc9c4d1b9a46432f1568a54d7dcdf51e224559b: 8297042: gradle -PBUILD_SDK_FOR_TEST=false fails with gradle 7.6
  • a13630fba8854b84516a089ff67e4c0c4c01ff79: 8268877: TextInputControlSkin: incorrect inputMethod event handler after switching skin
  • 7ec0852cca60a4093db0f68cf91da1291a9cf978: 8291853: [CSS] ClassCastException in CssStyleHelper calculateValue
  • 595695020cf46737a9790fb5638252d3e4a6fdad: 8285503: SwingNodeDnDMemoryLeakTest::testSwingNodeMemoryLeak fails sometimes
  • ... and 26 more: https://git.openjdk.org/jfx/compare/28f8fa9c20363ced9a94787ecfd45735b3e6b82e...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Nov 22 '22 09:11 openjdk[bot]

@Maran23 Pushed as commit a0ea8743eb20bf4791f7a8bf627416aa97c002e5.

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

openjdk[bot] avatar Nov 22 '22 09:11 openjdk[bot]