Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v4]

2025-07-18 Thread Brent Christian
On Thu, 17 Jul 2025 21:25:08 GMT, Phil Race wrote: >> Remove a finalize() method in CGraphicsEnvironment, replacing it with >> Disposer. >> >> I don't see a way to add a test to verify this clean up. > > Phil Race has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v4]

2025-07-17 Thread Alexander Zuev
On Thu, 17 Jul 2025 21:25:08 GMT, Phil Race wrote: >> Remove a finalize() method in CGraphicsEnvironment, replacing it with >> Disposer. >> >> I don't see a way to add a test to verify this clean up. > > Phil Race has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v4]

2025-07-17 Thread Sergey Bylokhov
On Thu, 17 Jul 2025 21:25:08 GMT, Phil Race wrote: >> Remove a finalize() method in CGraphicsEnvironment, replacing it with >> Disposer. >> >> I don't see a way to add a test to verify this clean up. > > Phil Race has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v3]

2025-07-17 Thread Phil Race
On Thu, 17 Jul 2025 00:32:34 GMT, Brent Christian wrote: >> Phil Race has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8362291 > > src/java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java line 98: > >> 96: /** Reference to t

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v4]

2025-07-17 Thread Phil Race
> Remove a finalize() method in CGraphicsEnvironment, replacing it with > Disposer. > > I don't see a way to add a test to verify this clean up. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8362291 - Changes: - all:

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v3]

2025-07-16 Thread Brent Christian
On Wed, 16 Jul 2025 22:34:02 GMT, Phil Race wrote: >> Remove a finalize() method in CGraphicsEnvironment, replacing it with >> Disposer. >> >> I don't see a way to add a test to verify this clean up. > > Phil Race has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v2]

2025-07-16 Thread Phil Race
On Wed, 16 Jul 2025 22:04:29 GMT, Sergey Bylokhov wrote: >> Phil Race has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8362291 > > src/java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java line 157: > >> 155: >>

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v3]

2025-07-16 Thread Phil Race
> Remove a finalize() method in CGraphicsEnvironment, replacing it with > Disposer. > > I don't see a way to add a test to verify this clean up. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8362291 - Changes: - all:

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v2]

2025-07-16 Thread Sergey Bylokhov
On Wed, 16 Jul 2025 20:57:40 GMT, Phil Race wrote: >> Remove a finalize() method in CGraphicsEnvironment, replacing it with >> Disposer. >> >> I don't see a way to add a test to verify this clean up. > > Phil Race has updated the pull request incrementally with one additional > commit since th

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v2]

2025-07-16 Thread Phil Race
On Tue, 15 Jul 2025 22:40:02 GMT, Phil Race wrote: >> src/java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java line 154: >> >>> 152: >>> 153: public synchronized void dispose() { >>> 154: if (displayReconfigContext != 0L) { >> >> can it be 0 here? it seems we never

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v2]

2025-07-16 Thread Phil Race
On Wed, 16 Jul 2025 00:09:51 GMT, Sergey Bylokhov wrote: >> It doesn't have to be. Is it a problem that it is ? > > Yeah, if it does not need to be, we can skip it; otherwise, we can update all > existing implementations to follow the same pattern. I removed it - PR Review Comment

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java [v2]

2025-07-16 Thread Phil Race
> Remove a finalize() method in CGraphicsEnvironment, replacing it with > Disposer. > > I don't see a way to add a test to verify this clean up. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8362291 - Changes: - all:

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java

2025-07-15 Thread Sergey Bylokhov
On Tue, 15 Jul 2025 22:39:48 GMT, Phil Race wrote: >> src/java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java line 153: >> >>> 151: } >>> 152: >>> 153: public synchronized void dispose() { >> >> Why the method is synchronized? we can call it on a different threads via

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java

2025-07-15 Thread Phil Race
On Tue, 15 Jul 2025 21:14:54 GMT, Sergey Bylokhov wrote: >> Remove a finalize() method in CGraphicsEnvironment, replacing it with >> Disposer. >> >> I don't see a way to add a test to verify this clean up. > > src/java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java line 153: > >> 151

Re: RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java

2025-07-15 Thread Sergey Bylokhov
On Tue, 15 Jul 2025 20:42:15 GMT, Phil Race wrote: > Remove a finalize() method in CGraphicsEnvironment, replacing it with > Disposer. > > I don't see a way to add a test to verify this clean up. src/java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java line 153: > 151: } > 15

RFR: 8362291: [macOS] Remove finalize method in CGraphicsEnvironment.java

2025-07-15 Thread Phil Race
Remove a finalize() method in CGraphicsEnvironment, replacing it with Disposer. I don't see a way to add a test to verify this clean up. - Commit messages: - 8362291 Changes: https://git.openjdk.org/jdk/pull/26332/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26332&range