Integrated: 8335411: RISC-V: Optimize encode_heap_oop when oop is not null

Feilong Jiang fjiang at openjdk.org
Wed Jul 3 12:14:27 UTC 2024


On Mon, 1 Jul 2024 14:32:03 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:

> Hi, please review this enhancement that adds two more `encode_heap_oop_not_null` methods.
> 
> Currently, `encode_heap_oop` will check if the oop pointer is `null` at first. We can skip the null check of the oop to reduce the unnecessary branch instruction when encoding non-null oop pointer into compressed form.
> 
> 
> Testing:
> - [x] Tier1~3 on linux-riscv64 with release build
> - [x] renaissance & dacapo benchmark suits for functionality

This pull request has now been integrated.

Changeset: 5866b16d
Author:    Feilong Jiang <fjiang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5866b16dbca3f63770c8792d204dabdf49b59839
Stats:     62 lines in 3 files changed: 59 ins; 0 del; 3 mod

8335411: RISC-V: Optimize encode_heap_oop when oop is not null

Reviewed-by: fyang, rehn

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

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


More information about the hotspot-dev mailing list