Does HotSpot ever stop profiling?

Stefan Reich stefan.reich.maker.of.eye at googlemail.com
Mon Sep 16 22:34:23 UTC 2019


Here's another thing I would love to have cleared up.

Once a method is C2-compiled - does it still update its invocation counters?

I would assume counting stops at that point since we have done all we could
for the method. Also the invocation counting overhead is always
embarrassing when fighting some C++ guys over claims on how "slow" Java is.
:o)

OTOH, there might be scenarios where it makes sense to have a second look
at "hot" methods, even if they are C2-compiled. Not sure if that scenario
exists in the current infrastructure.

Which one is it in reality?

-- 
Stefan Reich
BotCompany.de // Java-based operating systems


More information about the hotspot-dev mailing list