[OpenJDK 2D-Dev] Integrated: 8260695: The java.awt.color.ICC_Profile#getData/getData(int) are not thread safe

2021-02-22 Thread Sergey Bylokhov
On Mon, 1 Feb 2021 09:00:18 GMT, Sergey Bylokhov wrote: > Both methods are implemented in a similar way. > 1. Requests the size of the profile/tag data > 2. Creates an array of the correct size > 3. Requests the data and copy it to the array > > If the data will be changed concurrently

Re: [OpenJDK 2D-Dev] RFR: 8196301: java/awt/print/PrinterJob/Margins.java times out [v2]

2021-02-22 Thread Sergey Bylokhov
On Fri, 19 Feb 2021 04:34:51 GMT, Prasanta Sadhukhan wrote: >> This test was timing out in windows in mach5 nightly testing. Investigation >> reveals that 70% of the time, it is failing due to printer being chosen was >> Microsoft Print to PDF which opens up a File Save Dialog when "OK" was

Re: [OpenJDK 2D-Dev] Thread safety of SunFontManager.platformFontMap

2021-02-22 Thread Philip Race
The map is not expected to be updated after it has been created so it should not need synchronized access. There are a couple of exceptions where it is being updated when some file that is supposed to be there can't be found - a scenario that apparently hasn't been an issue in the 10 years

[OpenJDK 2D-Dev] Thread safety of SunFontManager.platformFontMap

2021-02-22 Thread Andrey Turbanov
Hello. I recently found suspicious field (with SpotBugs help) in class SunFontManager: static HashMap platformFontMap; This HashMap is accessed (read and write) in a method sun.font.SunFontManager#findFontFromPlatformMap. As I see there is no synchronization when this HashMap is accessed.