RFR: 8322294: Cleanup NativePostCallNop [v2]

Richard Reingruber rrich at openjdk.org
Sat Dec 23 08:13:02 UTC 2023


> This is a refactoring/cleanup of `NativePostCallNop` that simplifies the ppc64 port (dependent pr https://github.com/openjdk/jdk/pull/17171).
> 
> * `frame::get_oop_map()` is moved to shared code
> 
> * encoding / decoding details of the oopmap slot and the CodeBlob offset are moved from shared code to the platform dependent implementations of `bool NativePostCallNop::patch(int32_t oopmap_slot, int32_t cb_offset)` and `bool NativePostCallNop::decode(int32_t& oopmap_slot, int32_t& cb_offset)`
> 
> The change passed our CI testing. JTReg tests: tier1-4 of hotspot and jdk. All of Langtools and jaxp. SPECjvm2008, SPECjbb2015, Renaissance Suite, and SAP specific tests.
> All testing was done with fastdebug and release builds on the main platforms and also on Linux/PPC64le and AIX.
> 
> EDIT 2023-12-22: Statistics
> 
> The statistical numbers were generated with release builds. For riscv64 I used qemu.
> The variance is high on all platforms. Up to 80% I think. Numbers with fastdebug are also very different.
> Nevertheless, they are consistent within one run, and I'd expect errors in encoding or decoding to manifest in the numbers.
> 
> | test/jdk/java/lang/Thread/virtual/stress/Skynet.java | x86_64: base | x86_64: pr | aarch64: base | aarch64: pr | riscv64: base | riscv64: pr |
> |------------------------------------------------------|--------------|------------|---------------|-------------|---------------|-------------|
> | PCN lookup success                                   | 17517455     | 15339681   | 13179049      | 15980253    | 19400110      | 30017193    |
> | PCN lookup failure                                   | 328164       | 372555     | 237617        | 138164      | 415341        | 586476      |
> | PCN decode success                                   | 17513991     | 15336485   | 13176061      | 15977651    | 19397398      | 30014226    |
> | PCN decode failure                                   | 3464         | 3196       | 2988          | 2602        | 2712          | 2967        |
> | PCN patch success                                    | 2676         | 2465       | 2459          | 2089        | 2214          | 2259        |
> | PCN patch cb offset failure                          | 0            | 0          | 0             | 0           | 0             | 0           |
> | PCN patch oopmap slot failure                        | 0            | 0          | 0             | 0           | 0             | 0           |
> 
> 
> | SpecJVM2008 compiler.compiler with fix iterations    | x86_64: base | x8...

Richard Reingruber has updated the pull request incrementally with one additional commit since the last revision:

  Review Martin

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17150/files
  - new: https://git.openjdk.org/jdk/pull/17150/files/01af2d16..904c2337

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

  Stats: 14 lines in 2 files changed: 1 ins; 4 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/17150.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17150/head:pull/17150

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


More information about the hotspot-compiler-dev mailing list