mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6892485: Deadlock in SunGraphicsEnvironment / FontManager
Synchronize on correct monitor in SunFontManager. Reviewed-by: igor, prr
This commit is contained in:
parent
0d12029d1b
commit
d500623121
1 changed files with 2 additions and 2 deletions
|
@ -3058,7 +3058,7 @@ public abstract class SunFontManager implements FontSupport, FontManagerForSGE {
|
|||
return;
|
||||
}
|
||||
/* Use lock specific to the font system */
|
||||
synchronized (lucidaFontName) {
|
||||
synchronized (this) {
|
||||
if (FontUtilities.debugFonts()) {
|
||||
Thread.dumpStack();
|
||||
FontUtilities.getLogger()
|
||||
|
@ -3194,7 +3194,7 @@ public abstract class SunFontManager implements FontSupport, FontManagerForSGE {
|
|||
return;
|
||||
}
|
||||
/* Use lock specific to the font system */
|
||||
synchronized (lucidaFontName) {
|
||||
synchronized (this) {
|
||||
if (FontUtilities.debugFonts()) {
|
||||
Thread.dumpStack();
|
||||
FontUtilities.getLogger().info("loadAllFontFiles() called");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue