-
Notifications
You must be signed in to change notification settings - Fork 488
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
8237926: Potential memory leak of model data in javafx.scene.control.ListView #132
8237926: Potential memory leak of model data in javafx.scene.control.ListView #132
Conversation
👋 Welcome back arapte! A progress list of the required criteria for merging this PR into |
Webrevs
|
/reviewers 2 |
@kevinrushforth |
As I mentioned in the bug report for JDK-8240287, I recommend using JDK-8227619 as the bug ID for this fix (and closing JDK-8240287 in JBS as a duplicate). I think that you should be able to just change the title of this PR. |
Is it possible to create a test for the leak? |
Hi Kevin, I have updated the PR according to both the comments. Please take a look. |
Thanks. I'll put it on my review queue. |
@arapte This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there have been 3 commits pushed to the ➡️ To integrate this PR with the above commit message, type |
/integrate |
@arapte The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit 337ed72. |
Mailing list message from Ambarish Rapte on openjfx-dev: Changeset: 337ed72 8237926: Potential memory leak of model data in javafx.scene.control.ListView Reviewed-by: kcr, aghaisas ! modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/SelectedItemsReadOnlyObservableList.java |
The selection model of ListView stores a strong reference to the most recently changed item in
SelectedItemsReadOnlyObservableList.itemsListChange
, which causes a leak.Fix:
The below member variables and method of class SelectedItemsReadOnlyObservableList are not required anymore.
Variables: itemsList, itemsListChanged, itemsListChange, itemsListListener.
Method: setItemsList
These members were added when this class was created for JDK-8154216.
But after the fix for JDK-8152396, these class members are not required.
Verification:
No failure in existing tests and added a new test.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/132/head:pull/132
$ git checkout pull/132