-
Bug
-
Resolution: Fixed
-
P4
-
jfx14
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8263451 | 8u301 | Kumar Abhishek | P4 | Resolved | Fixed | b01 |
This is a follow-up bug to JDK-8241840 which fixed a memory leak for the Monocle glass platform by not calling the method that sets the focusedWindow to the current window unless that window is visible.
An earlier fix applied this change to the platform-independent code, but it seemed better to fix the bug in Monocle itself, thus this follow-up issue.
Since the focusedWindow field in the Windows platform isn't used at all, it only serves as a possible source of memory leak with no benefit. We should remove this unused field, along with the setter and getter methods, from the platform-independent Window class.
Monocle already tracks the focused Window itself and doesn't even use the one in the Window class.
An earlier fix applied this change to the platform-independent code, but it seemed better to fix the bug in Monocle itself, thus this follow-up issue.
Since the focusedWindow field in the Windows platform isn't used at all, it only serves as a possible source of memory leak with no benefit. We should remove this unused field, along with the setter and getter methods, from the platform-independent Window class.
Monocle already tracks the focused Window itself and doesn't even use the one in the Window class.
- backported by
-
JDK-8263451 Remove unused focusedWindow field in glass Window to avoid leak
- Resolved
- blocks
-
JDK-8259046 ViewPainter.ROOT_PATHS holds reference to Scene causing memory leak
- Closed
- relates to
-
JDK-8241840 Memoryleak: Closed focused Stages are not collected with Monocle.
- Closed