RFR: 8371493: Simplify search for AdapterHandlerEntry
Ashutosh Mehra
asmehra at openjdk.org
Mon Nov 10 19:05:07 UTC 2025
`AdapterHandlerEntry` stores a direct pointer to `AdapterBlob`. Therefore, when looking for a `AdapterHandlerEntry` corresponding to a `CodeBlob`, we can use direct comparison instead of using `CodeCache::find_blob`.
It also replaces the call to `AdapterHandlerLibrary::contains` in `CodeBlob::dump_for_addr` with a more trivial check `is_adapter_blob`.
-------------
Commit messages:
- 8371493: Simplify search for AdapterHandlerEntry
Changes: https://git.openjdk.org/jdk/pull/28223/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28223&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8371493
Stats: 35 lines in 3 files changed: 1 ins; 31 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/28223.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28223/head:pull/28223
PR: https://git.openjdk.org/jdk/pull/28223
More information about the hotspot-dev
mailing list