RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking

Alexey Ivanov aivanov at openjdk.org
Fri Dec 1 16:03:06 UTC 2023


On Fri, 1 Dec 2023 06:31:00 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> CSS.BackgroundImage.getImage uses double-checked locking but the loadedImage field isn't declared as volatile. Without the volatile modifier, double-checked locking implementation is broken.

Marked as reviewed by aivanov (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/16917#pullrequestreview-1760122924


More information about the client-libs-dev mailing list