RFC (M) 8058968: Compiler time traces should be improved
Aleksey Shipilev
aleksey.shipilev at oracle.com
Tue Sep 23 15:56:03 UTC 2014
Hi,
Current C1/C2 compiler time tracing is old and rusty: we have separate
VM options for C1 and C2 compilers; C2 tracking ignores CompilerBroker
(mostly), and doing the tracking on its own; bailouts and invalidates
are ignored in time tracks; and significant parts of compiler code are
not timed accurately.
We need to fix that for any future compiler performance work to succeed.
Our next stop in Nashorn/warmup performance endeavor would probably be
the native compilers performance.
I submitted this RFE to track:
https://bugs.openjdk.java.net/browse/JDK-8058968
Current patch is here, and comments are welcome:
http://cr.openjdk.java.net/~shade/8058968/webrev.01/
This code was only compiled on my dev Linux x86_64, and haven't yet been
in JPRT.
Summary of changes:
* Removes -XX:-TimeCompiler and -XX:-TimeCompiler2, and uses
-XX:+CITime and -XX:+CITimeVerbose consistently.
* CompilerBroker is now responsible for printing the stats for both C1
and C2.
* CompilerBroker now counts the time spent in bailed out compilations
as well. We are spending significant time there in Nashorn (bug to
follow), and omitting these compilation from total times ruin the
summaries (i.e. "C1+C2 > Total" looks really weird.
* C2 probes are turned into a product probes: there is little reason to
have them in fastdebug only, because our performance workloads are
executed with product bits, and we need statistics there. C1 already
does it in product mode.
* C2 probes are collapsed into a array, and enumerated event names are
used, like in C1.
* Additional C1 and C2 probes are added to cover "blind spots".
Compare the output:
http://cr.openjdk.java.net/~shade/8058968/old-output.txt
http://cr.openjdk.java.net/~shade/8058968/new-output.txt
Thanks,
-Aleksey.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20140923/9fcfe1bb/signature.asc>
More information about the hotspot-compiler-dev
mailing list