<AWT Dev> Review Request for 8065709: Deadlock in awt/logging apparently introduced by 8019623
mikhail.cherkasov at oracle.com
Fri Jan 16 14:18:32 UTC 2015
AppContext creation is guarder by getAppContextLockand, but during
we also call EventQueue initialization, during EQ initialization logger
it acquires "javaAwtAccess". if "javaAwtAccess" is acquired by other it
can lead to deadlock:
start AppContext creation
init EQ call getAppContext
init Logger waiting for getAppContextLock
waiting for javaAwtAccess
I applied the fix suggested in jbs comments by Petr.
I replaced eager logger initialization in EQ with lazy, so we won't
during EQ initialization as result no deadlock.
More information about the awt-dev