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

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Dec 7 11:44:46 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.

This pull request has now been integrated.

Changeset: 0b0fa47f
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0b0fa47f840344676312f756d3ae54a2ef2baccc
Stats:     4 lines in 1 file changed: 1 ins; 1 del; 2 mod

8319925: CSS.BackgroundImage incorrectly uses double-checked locking

Reviewed-by: aivanov

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

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


More information about the client-libs-dev mailing list