RFR: 8259228: Zero: rewrite (put|get)field from if-else chains to switches [v2]

Aleksey Shipilev shade at openjdk.java.net
Thu Mar 4 17:35:54 UTC 2021


> Current handling for (put|get)field uses if-else chain to select the access type. This can be made more uniform by using switches, like accessor_entry code already does.
> 
> Additional testing:
>   - [x] Ad-hoc Zero performance tests

Aleksey Shipilev has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:

 - Whitespace fixups
 - 8259228: Zero: rewrite (put|get)field from if-else chains to switches

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

Changes: https://git.openjdk.java.net/jdk/pull/1943/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1943&range=01
  Stats: 132 lines in 1 file changed: 54 ins; 0 del; 78 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1943.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1943/head:pull/1943

PR: https://git.openjdk.java.net/jdk/pull/1943


More information about the hotspot-runtime-dev mailing list