On Tue, 27 Jan 2026 06:06:46 GMT, Phil Race <[email protected]> wrote:
> Remove AppContext from ImageFetcher
copyright year not updated..
src/java.desktop/share/classes/sun/awt/image/ImageFetcher.java line 330:
> 328:
> 329: static FetcherInfo getFetcherInfo() {
> 330: return FETCHER_INFO;
Can you please refresh my memory as to why synchronization will not be required
for this?
I understand Swing is not thread-safe but there can be multiple images and this
is called from `ImageFetcher.add`, `ImageFetcher.remove` etc and it can create
"new FetcherInfo" instances, which is not desired, if access is not
synchronized, or so I think..
-------------
PR Review: https://git.openjdk.org/jdk/pull/29441#pullrequestreview-3714872658
PR Review Comment: https://git.openjdk.org/jdk/pull/29441#discussion_r2735118342