RFR: 8360867: CTW: Disable inline cache verification

Tobias Hartmann thartmann at openjdk.org
Mon Jun 30 05:25:39 UTC 2025


On Fri, 27 Jun 2025 10:30:30 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> 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`

Looks good to me too.

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

Marked as reviewed by thartmann (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26016#pullrequestreview-2969934502


More information about the hotspot-dev mailing list