6892485: Deadlock in SunGraphicsEnvironment / FontManager
Synchronize on correct monitor in SunFontManager. Reviewed-by: igor, prr
This commit is contained in:
parent
0d12029d1b
commit
d500623121
@ -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…
Reference in New Issue
Block a user