-
Notifications
You must be signed in to change notification settings - Fork 544
8252811: The list of cells in a VirtualFlow is cleared every time the number of items changes #298
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
Conversation
…ng or removing new items
|
👋 Welcome back jpereda! A progress list of the required criteria for merging this PR into |
|
This looks ok to me. It would be ideal to have the test failing before JDK-8113318 was applied, as that would show the issue for which JDK-8113318 was created is now fixed. But I do understand it is very hard to apply this test to a code snapshot from 2011. |
|
/reviewers 2 |
|
@kevinrushforth |
|
As there is no automated test to make sure we are not re-introducing the leak, I have verified by running Ensemble8 KeyEvent sample mentioned in JDK-8113318 and typing more than 800 keys. There is no performance degradation observed. The change and test looks OK. |
|
Just a note: fixing this makes JDK-8244826 disappear - not entirely certain, if it's really a fix for that one or only smearing over it. |
kevinrushforth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
|
@jperedadnr This change now passes all automated pre-integration checks. In addition to the automated checks, the change must also fulfill all project specific requirements After integration, the commit message will be:
Since the source branch of this PR was last updated there have been 8 commits pushed to the
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 ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
@jperedadnr Since your change was applied there have been 8 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit d10f948. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR removes an old fix (RT-13965/JDK-8113318), which was applied in 2011 to avoid a memory leak in
VirtualFlow::sheetChildren, after new items were constantly added.With the current VirtualFlow implementation, there are in place the necessary methods that take care of cleaning or adding new cells to the sheetChildren list, and such memory leak doesn't exist, the size remains constant when new items are added or removed (see included unity test).
The call to
sheetchildren.clear(), on the contrary, has a big impact in performance and CPU usage, when new items are constantly added, as has been reported in JDK-8185886/#108.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/298/head:pull/298$ git checkout pull/298