RFR: 8287393: AArch64: Remove trampoline_call1 [v3]

Evgeny Astigeevich duke at openjdk.org
Thu Jul 28 09:53:38 UTC 2022


> `trampoline_call` can do dummy code generation to calculate the size of C2 generated code. This is done in the output phase. In [src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp#L1042](https://github.com/openjdk/jdk/blob/e0d361cea91d3dd1450aece73f660b4abb7ce5fa/src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp#L1042) Loom code needed to generate a trampoline call outside of C2 and without the output phase. This caused test crashes. The project Loom added `trampoline_call1` to workaround the crashes. 
> 
> This PR improves detection of C2 output phase which makes `trampoline_call1` redundant.
> 
> Tested the fastdebug/release builds:
> - `'gtest`: Passed
> - `tier1`...`tier2`: Passed

Evgeny Astigeevich has updated the pull request incrementally with one additional commit since the last revision:

  Restore check_emit_size parameter

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9592/files
  - new: https://git.openjdk.org/jdk/pull/9592/files/e732890b..4b5953b7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9592&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9592&range=01-02

  Stats: 16 lines in 3 files changed: 1 ins; 4 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/9592.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9592/head:pull/9592

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


More information about the hotspot-compiler-dev mailing list