Theoretical data race on java.util.logging.Handler.sealed
Mandy Chung
mandy.chung at oracle.com
Tue Dec 10 04:13:05 UTC 2013
On 12/8/2013 11:19 AM, Peter Levart wrote:
>
> H Mandy,
>
> I created an issue for it nevertheless:
>
> https://bugs.openjdk.java.net/browse/JDK-8029781
>
> You're right, doPrivileged() is a more straight-forward approach than
> 'sealed' variable. Since this might only be considered for inclusion
> in JDK9 when lambdas are already a tried technology, how do you feel
> about using them for platform code like logging?
I'm in favor of more platform code using lambda when appropriate.
logging is a module separated from the base module in Jigsaw. I don't
see any issue with that while the only thing is that when we backport it
to 8u, the backport would be different - not an issue either.
> As far as I know (just checked), lambda meta-factory is not using any
> j.u.logging, so there is no danger of initialization loops or similar:
>
> http://cr.openjdk.java.net/~plevart/jdk8-tl/jul.Handler.sealed/webrev.03
I only skim with the change. I will review it tomorrow.
Mandy
More information about the core-libs-dev
mailing list