<AWT Dev> [9] RFR: 6477756: GraphicsDevice.getConfigurations() is slow taking 3 or more seconds

Phil Race philip.race at oracle.com
Tue May 17 15:58:21 UTC 2016


looks good to me.

add noreg-hard or perf to the bug.

-phil

On 05/17/2016 08:54 AM, Vadim Pakhnushev wrote:
> Hi all,
>
> Please review this fix:
> https://bugs.openjdk.java.net/browse/JDK-6477756
> http://cr.openjdk.java.net/~vadim/6477756/webrev.00/
>
> For me this bug reproduces only when running through the RDP and with 
> -Dsun.java2d.d3d=false flag.
> Basically each DescribePixelFormat takes about 40-60 ms when running 
> without hardware acceleration because it calls LoadLibrary/FreeLibrary 
> for opengl32.dll every time.
> So the fix is to cache the handle to the dll.
> There is no need to free it.
>
> Thanks,
> Vadim



More information about the awt-dev mailing list