Re: RFR: 6507038: Memory Leak in JTree / BasicTreeUI [v6]

2024-01-31 Thread Prasanta Sadhukhan
On Wed, 31 Jan 2024 17:27:15 GMT, Alexey Ivanov wrote: >> src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java line >> 3284: >> >>> 3282: if(tree != null) { >>> 3283: rendererPane.removeAll(); >>> 3284: // Only ever

Re: RFR: 6507038: Memory Leak in JTree / BasicTreeUI [v6]

2024-01-31 Thread Alexey Ivanov
On Wed, 31 Jan 2024 17:13:55 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimise test > > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java line > 3284: > >>

Re: RFR: 6507038: Memory Leak in JTree / BasicTreeUI [v6]

2024-01-31 Thread Alexey Ivanov
On Wed, 31 Jan 2024 05:39:11 GMT, Prasanta Sadhukhan wrote: >> When using a TreeCellRenterer which creates new components in >> getTreeCellRendererComponent() in a JTree that is not visible, changes to >> the nodes cause a memory leak. >> When a node is changed, the Method getNodeDimensions()

Re: RFR: 6507038: Memory Leak in JTree / BasicTreeUI [v6]

2024-01-30 Thread Prasanta Sadhukhan
> When using a TreeCellRenterer which creates new components in > getTreeCellRendererComponent() in a JTree that is not visible, changes to the > nodes cause a memory leak. > When a node is changed, the Method getNodeDimensions() is called to calculate > the new dimensions for the node. In this