Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk20u Public archive

Commit 481a9c1

Browse files
author
Dmitry Cherepanov
committed
8305352: updateIconImages may lead to deadlock after JDK-8276849
Backport-of: f968da97a5a5c68c28ad29d13fdfbe3a4adf5ef7
1 parent c0604cb commit 481a9c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/java.desktop/windows/classes/sun/awt/windows/WWindowPeer.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ public void updateGC() {
600600
newDev.addDisplayChangedListener(this);
601601
}
602602

603-
updateIconImages();
603+
if (((Window)target).isVisible()) {
604+
updateIconImages();
605+
}
604606

605607
AWTAccessor.getComponentAccessor().
606608
setGraphicsConfiguration((Component)target, winGraphicsConfig);

0 commit comments

Comments
 (0)