JDK-8316694 introduced the creation of new nmethods from existing ones, allowing method relocation in the code heap. In particular it created the method `nmethod::nmethod(const nmethod &nm)` where, among other things, nmethod entry points are copied.
Valhalla introduces 3 new entrypoints, which need to be copied as well: `_inline_entry_point`, `_verified_inline_entry_point`, and `_verified_inline_ro_entry_point`. This change adds the copying of those entrypoints and, in the process, creates a lambda function to delegate the computation of the address (used for `_osr_entry_point` as well). ## Testing Tier 1-3+ ------------- Commit messages: - JDK-8370571: add assert to lambda - Merge branch 'lworld' into JDK-8370571 - JDK-8370571: [lworld] Complete JDK-8316694 implementation for Valhalla Changes: https://git.openjdk.org/valhalla/pull/2069/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2069&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8370571 Stats: 25 lines in 2 files changed: 7 ins; 12 del; 6 mod Patch: https://git.openjdk.org/valhalla/pull/2069.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2069/head:pull/2069 PR: https://git.openjdk.org/valhalla/pull/2069
