RFR: 8282024: add EscapeAnalysis statistics under PrintOptoStatistics [v8]

aamarsh duke at openjdk.java.net
Wed May 4 01:36:13 UTC 2022


> Escape Analysis and Scalar Replacement statistics were added when the -XX:+PrintOptoStatistics flag is set. All code is placed in `#ifndef Product` block, so this code is only run when creating a debug build. Using renaissance benchmark I ran a few tests to confirm that numbers were printing correctly. Below is an example run:
> 
> 
> No escape = 372, Arg escape = 74, Global escape = 1855 (EA executed in   10.49 seconds)
> Objects scalar replaced = 240, Monitor objects removed = 44, GC barriers removed = 37, Memory barriers removed = 284

aamarsh has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:

  adding escape analysis and scalar replacement statistics

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8019/files
  - new: https://git.openjdk.java.net/jdk/pull/8019/files/18328bb3..a2811a8f

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8019&range=07
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8019&range=06-07

  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8019.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8019/head:pull/8019

PR: https://git.openjdk.java.net/jdk/pull/8019


More information about the hotspot-compiler-dev mailing list