JDK 21 | JDK 22 |
---|---|
21.0.4-oracleFixed | 22 b21Fixed |
Relates :
|
|
Relates :
|
Currently, in the destructor of CodeCache::UnloadingScope we flush/purge the code cache from dead nmethods. This is fairly surprising to do this in the destructor because the purging can take a very signficant amount of time (i.e. 90%+ of total class unloading time). Make the flushing/puring explicit.
|