Strange behaviour in DeferredCompletionFailureHandler

Dmitry Batkovich dmitry.batkovich at
Mon Nov 12 15:10:57 UTC 2018

Hi all,

I've faced with javac 11 performance problem
in DeferredCompletionFailureHandler. I have a project with google dagger
dependency injection and with some javac task listener (You may see In this case I see lots
FlipSymbolDescription#flip() traces in compiler profile snapshot. I've
tried to investigate the problem by myself and found next things:

produces memory leaks because keys of the map are present as a part of
value object. So, keys are always strongly referenced. And usage of
WeakHashMap is useless here.

does nothing. Any information inside FlipSymbolDescription is never used
(DefferedCompleter is never used).

3) Handler.install/uninstall method usages (see setHandler() usages in
MultiTaskListener) produces lots of odd cycles where we have only field
reassignment. Sure we need at least one TaskListener here.

So, I've found that fix for
is very dirty in point view of compiler performance. And I don't understand
what's the purpose of class2Flip map introduction. Could you clarify, help
me, please?

Dmitrii Batkovich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list