Integrated: JDK-8319784: VM crash during heap dump after JDK-8287061

Cesar Soares Lucas cslucas at openjdk.org
Tue Nov 21 07:23:18 UTC 2023


On Sat, 11 Nov 2023 01:52:54 GMT, Cesar Soares Lucas <cslucas at openjdk.org> wrote:

> This fixes an incorrect assert in `debugInfo.hpp`. The assert is incorrect because this method may be called before rematerialization of the ObjectValue takes place, and therefore, `_selected` will be nullptr. This pull request patches the method to just return `Handle() => nullptr` if the rematerialization of the object hasn't taken place yet. This is the same behavior used by scalar-replaced objects not participating in merges.
> 
> I added a test to reproduce a scenario where the assert was causing a problem.
> 
> Tested on Ubuntu/MacOS/Windows x86_64 tier1-4.

This pull request has now been integrated.

Changeset: 3544d2dd
Author:    Cesar Soares Lucas <cslucas at openjdk.org>
Committer: Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3544d2dd869c4c712f5c5ed172ddb7b1683e9a7f
Stats:     119 lines in 3 files changed: 118 ins; 0 del; 1 mod

8319784: VM crash during heap dump after JDK-8287061

Reviewed-by: kvn, thartmann, shade

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

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


More information about the hotspot-compiler-dev mailing list