changeset 14770:f4d89e872b3e

6477756: GraphicsDevice.getConfigurations() is slow taking 3 or more seconds Reviewed-by: prr, serb
author vadim
date Tue, 17 May 2016 21:50:13 +0300
parents fb38b0925915
children 4251feae3989
files src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp	Tue May 17 14:31:12 2016 +0300
+++ b/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp	Tue May 17 21:50:13 2016 +0300
@@ -929,6 +929,9 @@
     // Only want to call this once per session
     make_uns_ordered_dither_array(img_oda_alpha, 256);
 
+    // workaround JDK-6477756, ignore return value to keep dll in memory
+    JDK_LoadSystemLibrary("opengl32.dll");
+
     CATCH_BAD_ALLOC;
 }