RFR: 8314755: Resource leak: SwingWorker listener keeps strong reference to executor

2023-09-08 Thread Christopher Sahnwaldt
In https://github.com/openjdk/jdk/commit/b8af3d50192f8bc98d83f8102f0fd1989f302e32 the weak reference was accidentally changed from a field to a local variable, which means that the PropertyChangeListener keeps a strong reference to executorService, which is a resource leak -

Re: RFR: 8314755: Resource leak: SwingWorker listener keeps strong reference to executor

2023-09-08 Thread Christopher Sahnwaldt
On Sun, 30 Jul 2023 12:50:58 GMT, Christopher Sahnwaldt wrote: > In > https://github.com/openjdk/jdk/commit/b8af3d50192f8bc98d83f8102f0fd1989f302e32 > the weak reference was accidentally changed from a field to a local > variable, which means that the PropertyChangeListener keeps a strong >

Re: RFR: 8314755: Resource leak: SwingWorker listener keeps strong reference to executor

2023-09-08 Thread Sergey Bylokhov
On Sun, 30 Jul 2023 12:50:58 GMT, Christopher Sahnwaldt wrote: > In > https://github.com/openjdk/jdk/commit/b8af3d50192f8bc98d83f8102f0fd1989f302e32 > the weak reference was accidentally changed from a field to a local > variable, which means that the PropertyChangeListener keeps a strong >

RFR: 8315898: Open source swing JMenu tests

2023-09-08 Thread Abhishek Kumar
Few closed JMenu swing tests are open sourced. - Commit messages: - Open source swing JMenu tests Changes: https://git.openjdk.org/jdk/pull/15639/files Webrev: https://webrevs.openjdk.org/?repo=jdk=15639=00 Issue: https://bugs.openjdk.org/browse/JDK-8315898 Stats: 357 lines in

Re: RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties

2023-09-08 Thread Alexey Ivanov
On Fri, 8 Sep 2023 13:02:07 GMT, Alan Bateman wrote: > So what about FontConfiguration? Is that something using the class directly > too? I think this is not needed either. As far as I can see, the instance of `FontConfiguration` is created from `doPrivileged`, therefore these two system

Re: RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties

2023-09-08 Thread Alan Bateman
On Fri, 8 Sep 2023 10:58:23 GMT, Matthias Baesken wrote: > So probably we could avoid changing VMManagementImpl.java because it is not > needed any more at least in jdk-head . It's a JDK internal class so should never have been used directly. I can't imagine what might be using a JDK internal

RFR: 8315663: Open source misc awt tests

2023-09-08 Thread Prasanta Sadhukhan
Some closed awt tests are opensourced - Commit messages: - 8315663: Open source misc awt tests Changes: https://git.openjdk.org/jdk/pull/15634/files Webrev: https://webrevs.openjdk.org/?repo=jdk=15634=00 Issue: https://bugs.openjdk.org/browse/JDK-8315663 Stats: 263 lines in 2

Re: RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties

2023-09-08 Thread Matthias Baesken
On Fri, 8 Sep 2023 08:26:16 GMT, Matthias Baesken wrote: > There are some remaining places in 'general' JDK code (= code not related to > e.g. a specific tool) getting properties like : > > osName = System.getProperty(os.name) > >

Re: RFR: 8315761: Open source few swing JList and JMenuBar tests [v2]

2023-09-08 Thread Abhishek Kumar
On Fri, 8 Sep 2023 07:07:20 GMT, Prasanta Sadhukhan wrote: >> Abhishek Kumar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Review comment update > > test/jdk/javax/swing/JList/bug4832765.java line 41: > >> 39: public class

Re: RFR: 8315761: Open source few swing JList and JMenuBar tests [v2]

2023-09-08 Thread Abhishek Kumar
> Few closed JList and JMenubar swing tests are open sourced. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment update - Changes: - all: https://git.openjdk.org/jdk/pull/15621/files - new:

Re: RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties

2023-09-08 Thread Alan Bateman
On Fri, 8 Sep 2023 08:26:16 GMT, Matthias Baesken wrote: > There are some remaining places in 'general' JDK code (= code not related to > e.g. a specific tool) getting properties like : > > osName = System.getProperty(os.name) > >

RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties

2023-09-08 Thread Matthias Baesken
There are some remaining places in 'general' JDK code (= code not related to e.g. a specific tool) getting properties like : osName = System.getProperty(os.name) https://github.com/openjdk/jdk/blob/master/src/java.management/share/classes/sun/management/VMManagementImpl.java#L225

Re: RFR: 8315761: Open source few swing JList and JMenuBar tests

2023-09-08 Thread Abhishek Kumar
On Fri, 8 Sep 2023 07:12:50 GMT, Prasanta Sadhukhan wrote: > Minor comment...Also please ensure mach5 job is run in open too before > integration Ran the mach5 job in open too, it was green. Link added in JBS comment. - PR Comment:

Re: RFR: 8315677: Open source few swing JFileChooser and other tests

2023-09-08 Thread Abhishek Kumar
On Fri, 8 Sep 2023 07:04:54 GMT, Prasanta Sadhukhan wrote: > I hope you have run these tests in open in mach5 as mentioned, as I dont see > any test run job result in JBS..Approving assumming you have run and no > issues in test job.. I ran these tests in CI, it was green. Forgot to add in

Re: RFR: 8315761: Open source few swing JList and JMenuBar tests

2023-09-08 Thread Prasanta Sadhukhan
On Thu, 7 Sep 2023 15:19:37 GMT, Abhishek Kumar wrote: > Few closed JList and JMenubar swing tests are open sourced. Minor comment...Also please ensure mach5 job is run in open too before integration test/jdk/javax/swing/JList/bug4832765.java line 41: > 39: public class bug4832765 { > 40: >

Re: RFR: 8315677: Open source few swing JFileChooser and other tests

2023-09-08 Thread Prasanta Sadhukhan
On Thu, 7 Sep 2023 18:57:50 GMT, Abhishek Kumar wrote: > Few closed JFileChooser and other swing tests are open sourced. I hope you have run these tests in open in mach5 as mentioned, as I dont see any test run job result in JBS..Approving assumming you have run and no issues in test job..