RFR: 8315549: CITime misreports code/total nmethod sizes

Aleksey Shipilev shade at openjdk.org
Fri Sep 1 14:59:50 UTC 2023


If you run with -XX:+CITime, then it would print the odd data:


% build/macosx-aarch64-server-fastdebug/images/jdk/bin/java -Xcomp -XX:+CITime Hello.java

...
  nmethod code size : 42544128 bytes
  nmethod total size : 23678448 bytes


Note how `total` is smaller than `code`! This is just a simple problem in printing code. 

Additional testing:
 - [x] Eyeballing `-XX:+CITime` output

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

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jdk/pull/15538/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15538&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8315549
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/15538.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15538/head:pull/15538

PR: https://git.openjdk.org/jdk/pull/15538


More information about the hotspot-compiler-dev mailing list