<AWT Dev>  Review Request: 8138764 In some cases the usage of TreeLock can be replaced by other synchronization
Sergey.Bylokhov at oracle.com
Tue Oct 6 14:09:21 UTC 2015
Please review the fix for jdk9, I plan to backport it to jdk8.
In this fix some of synchronizations on TreeLock were removed.
- Component.java(CachedPainter.java) : long time ago this
synchronization was necessary, because the getGC method iterated over
hierarchy of components, but now it simple getter.
- Window.java : locationByPlatform and opacity are changed to volatile
and an additional synchronization is removed.
These changes are subset of my fix for JDK-6765536, which is safe to
backport to jdk8.
Webrev can be found at: http://cr.openjdk.java.net/~serb/8138764/webrev.00
Best regards, Sergey.
More information about the awt-dev