RFR: 8278548: G1: Remove unnecessary check in forward_to_block_containing_addr

Albert Mingkun Yang ayang at openjdk.java.net
Sat Dec 11 14:56:38 UTC 2021


On Fri, 10 Dec 2021 11:36:09 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Simple change of removing an always-false `if`.
> 
> Test: I added `assert(false)` inside the `if`, and no failure in tier1-6.

I added an assert. However, it's quite odd to mention the klass pointer in this context: it's unclear why the klass is not null and why a non-null klass pointer is useful or required here.

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

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



More information about the hotspot-gc-dev mailing list