JDK-8312218 : Print additional debug information when hitting assert(in_hash)
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-18
  • Updated: 2024-06-11
  • Resolved: 2023-07-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 22
21.0.4Fixed 22 b09Fixed
Related Reports
Relates :  
Description
In the past, we've been hitting:

assert(in_hash) failed: node should be in igvn hash table

a couple of times without being able to reproduce or debug it properly and we ended up closing it as cannot reproduce. This enhancement should dump some information about the graph to better analyze this problem when hitting it again in the future.

For example, we could dump the node in question, parts of the graph or the entire graph. 
Comments
jdk21u-dev backport request I would like to have the patch in jdk21u-dev as well, because the enhancement would be helpful there too (dump more info to better analyze the problem "node should be in igvn hash table"). The backport is clean and low risk.
16-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/572 Date: 2024-05-15 11:35:02 +0000
15-05-2024

Changeset: 7cbab1f3 Author: Eric Nothum <eric.nothum@oracle.com> Committer: Tobias Hartmann <thartmann@openjdk.org> Date: 2023-07-27 07:29:23 +0000 URL: https://git.openjdk.org/jdk/commit/7cbab1f39636f3cf32f1276bc46feaa8107a14e6
27-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15022 Date: 2023-07-25 15:35:47 +0000
26-07-2023