On Fri, 27 Feb 2026 21:08:07 GMT, Alexey Ivanov <[email protected]> wrote:

> The `FetcherInfo` class stores information for the `ImageFetcher` class. The 
> `waitList` field of `FetcherInfo` is used in synchronised blocks, but it's 
> not marked as `final`.
> 
> If the reference in `waitList` changes, it could break the synchronisation.
> 
> To avoid uncertainties, mark the `waitList` field final.
> 
> Additionally, the `fetchers` array should also be `final`, the reference is 
> never changed.

This pull request has now been integrated.

Changeset: 2adffe0c
Author:    Alexey Ivanov <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/2adffe0c3cf911df55a79d183d8d63f03b3acc97
Stats:     3 lines in 1 file changed: 0 ins; 0 del; 3 mod

8378872: Mark waitList in FetcherInfo final

Reviewed-by: prr, azvegint

-------------

PR: https://git.openjdk.org/jdk/pull/29966

Reply via email to