RFR: 8325551: Remove unused obj_is_alive and block_start in Space

Stefan Karlsson stefank at openjdk.org
Fri Feb 9 13:01:53 UTC 2024


On Fri, 9 Feb 2024 11:29:57 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Trivial removing dead code.

src/hotspot/share/gc/shared/space.cpp line 144:

> 142: 
> 143: bool Space::obj_is_alive(const HeapWord* p) const {
> 144:   assert (block_is_obj(p), "The address should point to an object");

Does this remove the last usage of block_is_obj? If it does, that function should probably also be removed in this function.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17786#discussion_r1484287542


More information about the hotspot-gc-dev mailing list