[OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Dec 4 22:17:55 UTC 2019


On 12/4/19 6:06 am, Alexey Ivanov wrote:
> Yes, we still need passiveDCList. A DC can be moved to the passive list by DisposeThreadGraphicsInfo function in GDIWindowSurfaceData.cpp. This is called not on the toolkit thread, so we have to defer releasing the DC in this case.
> 
> However, I agree, we can simplify releasing DCs when on the toolkit thread by skipping the passive list. Yet having two different approaches could be error prone.

Ok, then let's leave the current fix as-is.


-- 
Best regards, Sergey.


More information about the 2d-dev mailing list