RFR: 6995195: Static initialization deadlock in sun.java2d.loops.Blit and GraphicsPrimitiveMgr [v2]
Dmitry Cherepanov
dcherepanov at openjdk.org
Fri Apr 14 15:48:32 UTC 2023
On Thu, 13 Apr 2023 15:34:41 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
>> Dmitry Cherepanov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> locate synchronized
>
> src/java.desktop/share/classes/sun/java2d/loops/GraphicsPrimitiveMgr.java line 270:
>
>> 268: }
>> 269:
>> 270: static GraphicsPrimitive locate(int primTypeID) {
>
> it should be marked as `synchronized` too. Otherwise there will possible data race between other thread called `register`
Fixed, thanks
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13459#discussion_r1166996384
More information about the client-libs-dev
mailing list