RFR: 8360867: CTW: Disable inline cache verification

Aleksey Shipilev shade at openjdk.org
Fri Jun 27 10:34:50 UTC 2025


In CTW profiling, I noticed we spend a lot of time doing inline cache verification when nmethods are unloaded. Due to the nature of CTW, we unload _a lot_ of nmethods. Since the goal for CTW is to stress the compilers themselves, not inline caches in particular (I assume those are blank even, given almost no real code is executed), it makes sense to disable that verification for CTW. 

A taste of performance improvement, about 2%:


$ time CONF=linux-x86_64-server-fastdebug make test TEST=applications/ctw/modules

# Current
real	5m1.616s
user	79m41.398s
sys	14m39.607s

# No verify inline caches
real	4m52.239s
user	77m41.886s
sys	14m25.352s


Additional testing:
 - [x] Linux x86_64 server {fastdebug,release}, `applications/ctw/modules`

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

Commit messages:
 - Fix

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

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


More information about the hotspot-dev mailing list