RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking
Sergey Bylokhov
serb at openjdk.org
Mon Dec 4 20:45:39 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.
It is probably easy just drop the usage of loadedImage and use the image instead?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16917#issuecomment-1839443510
More information about the client-libs-dev
mailing list