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

Coleen Phillimore coleenp at openjdk.java.net
Thu Mar 4 16:02:41 UTC 2021


On Tue, 5 Jan 2021 10:44:50 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> 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

I guess it's not easy (or performant) to refactor this code into a function.  BytecodeInterpreter::run is 2440 lines long.

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

Marked as reviewed by coleenp (Reviewer).

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


More information about the hotspot-runtime-dev mailing list