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

aamarsh duke at openjdk.java.net
Thu May 19 23:52:41 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 = 317, Arg escape = 118, Global escape = 1995 (EA executed in   11.71 seconds)   ** EA stats might be slightly off since objects might be double counted due to iterative EA **
> Objects scalar replaced = 201, Monitor objects removed = 23, GC barriers removed = 50, Memory barriers removed = 224

aamarsh has updated the pull request incrementally with one additional commit since the last revision:

  fixed trailing whitespace jcheck error

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8019/files
  - new: https://git.openjdk.java.net/jdk/pull/8019/files/ab33d8a9..3e3aaf57

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

  Stats: 1 line in 1 file changed: 0 ins; 0 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