RFR: 8304149: Avoid walking the CodeCache in DeoptimizationScope::deoptimize_marked

Axel Boldt-Christmas aboldtch at openjdk.org
Wed Mar 15 08:15:20 UTC 2023


Change DeoptimizationScope to keep track of the marked CompiledMethods in a list to avoid having to walk the CodeCache to find them again when deoptimizing.

This adds a linked list to DeoptimizationScope which tracks the marked CompiledMethods for the active deoptimization generation. Then when deoptimize_marked is called the committing caller claims the list and uses it to deoptimize the linked (and marked) CompileMethods instead of iterating over the CodeCache to find them again.

Testing: Oracle platforms tier 1-7

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

Commit messages:
 - 8304149: Avoid walking the CodeCache in DeoptimizationScope::deoptimize_marked

Changes: https://git.openjdk.org/jdk/pull/13036/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13036&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8304149
  Stats: 139 lines in 6 files changed: 94 ins; 40 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/13036.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/13036/head:pull/13036

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


More information about the hotspot-dev mailing list