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

8241737: TabPaneSkin memory leak on replacing selectionModel #175

wants to merge 2 commits into from


Copy link

@arapte arapte commented Apr 13, 2020

TabPaneSkin adds a listener to SelectionModel.selectedItemProperty() which holds the SelectionModel from being GCed. Fix is to add and remove the listener when a SelectionModel is changed.

If the fix looks good, We can change all the getSkinnable().getSelectionModel() calls to use the new class member selectionModel.

The fix seems safe to cause any regression. Enabled an ignored test that was added as part of fix for JDK-8241455.


  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed


  • JDK-8241737: TabPaneSkin memory leak on replacing selectionModel


  • Jeanette Winzenburg (fastegal - Author)
  • Kevin Rushforth (kcr - Reviewer)


$ git fetch pull/175/head:pull/175
$ git checkout pull/175

Copy link

@bridgekeeper bridgekeeper bot commented Apr 13, 2020

👋 Welcome back arapte! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request.

@openjdk openjdk bot added the rfr label Apr 13, 2020
Copy link

@mlbridge mlbridge bot commented Apr 13, 2020


Copy link

@kevinrushforth kevinrushforth commented Apr 13, 2020

/reviewers 2

Copy link

@openjdk openjdk bot commented Apr 13, 2020

The number of required reviews for this PR is now set to 2 (with at least 1 of role reviewers).

@kevinrushforth kevinrushforth self-requested a review Apr 13, 2020
Copy link

@kevinrushforth kevinrushforth left a comment

Looks good.

Copy link

@openjdk openjdk bot commented Apr 22, 2020

@arapte This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type /integrate in a new comment to proceed. After integration, the commit message will be:

8241737: TabPaneSkin memory leak on replacing selectionModel

Reviewed-by: fastegal, kcr
  • If you would like to add a summary, use the /summary command.
  • To credit additional contributors, use the /contributor command.
  • To add additional solved issues, use the /solves command.

Since the source branch of this PR was last updated there have been 30 commits pushed to 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 automatic rebasing, please merge master into your branch, and then specify the current head hash when integrating, like this: /integrate 48476eb3af78165d094315ee05a1a8a7e12352f5.

➡️ 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 label Apr 22, 2020
Copy link
Member Author

@arapte arapte commented Apr 23, 2020


@openjdk openjdk bot closed this Apr 23, 2020
@openjdk openjdk bot added integrated and removed ready labels Apr 23, 2020
Copy link

@openjdk openjdk bot commented Apr 23, 2020

@arapte The following commits have been pushed to master since your change was applied:

  • 48476eb: 8241582: Infinite animation does not start from the end when started with a negative rate
  • dedf7cb: 8242490: Upgrade to gcc 9.2 on Linux
  • 5e9fb82: 8242577: Cell selection fails on iOS most of the times
  • 69e4266: 8242489: ChoiceBox: initially toggle not sync'ed to selection
  • 1d88180: 8243112: Skip failing test SVGTest.testSVGRenderingWithPattern
  • ec8608f: 8223298: SVG patterns are drawn wrong
  • e82046e: 8242530: [macos] Some audio files miss spectrum data when another audio file plays first
  • 7044cef: 8241476: Linux build warnings issued on gcc 9
  • 9d50c4c: Merge
  • 4d69a0d: 8241629: [macos10.15] Long startup delay playing media over https on Catalina
  • b1fdc45: 8242209: Increase web native thread stack size for x86 mode
  • e1cb191: 8240694: [macos 10.15] JavaFX Media hangs on some video files on Catalina
  • c154538: 8242106: [macos] Remove obsolete GlassView2D.m class
  • 3f663e3: 8240262: iOS refresh rate is capped to 30 Hz
  • 231879a: 8241710: NullPointerException while entering empty submenu with "arrow right"
  • 470c7d0: 8230809: HTMLEditor formatting lost when selecting all (CTRL-A)
  • fda015c: 8242167: ios keyboard handling
  • 844460b: 8242163: Android keyboard integration fails
  • ef37669: Merge
  • f2bca9f: Merge
  • 6900d29: Merge
  • e91bec4: Merge
  • 66a8f49: Merge
  • fde42da: Merge
  • e21fd1f: Merge
  • 443c845: Merge
  • 31e63de: Merge
  • 14c6938: 8236798: Enhance FX scripting support
  • bfb2d0e: Merge
  • 39f6127: Merge

Your commit was automatically rebased without conflicts.

Pushed as commit 91d4c8b.

@openjdk openjdk bot removed the rfr label Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants