Integrated: 8370853: IGV: SEGV in IdealGraphPrinter::print after JDK-8370569

Roberto Castañeda Lozano rcastanedalo at openjdk.org
Wed Oct 29 10:52:35 UTC 2025


On Wed, 29 Oct 2025 09:12:16 GMT, Roberto Castañeda Lozano <rcastanedalo at openjdk.org> wrote:

> This (trivial?) changeset initializes `IdealGraphPrinter::_parse` to `nullptr` on construction. This prevents segmentation faults when this field is accessed in: https://github.com/openjdk/jdk/blob/20bcf0eddaee0a57142bcc614cc5415b53c16460/src/hotspot/share/opto/idealGraphPrinter.cpp#L1007-L1017
> This failure is triggered when IGV graph dumping is run with a print level lower than 6 on platforms where `IdealGraphPrinter::_parse` is not implicitly initialized to `nullptr`. On print level 6, `IdealGraphPrinter::_parse` is initialized by https://github.com/openjdk/jdk/blob/5a2b0ca7fea7d1a283aa90696c3989ae189148ec/src/hotspot/share/opto/parse2.cpp#L2785 before it is accessed.
> 
> **Testing:** tier1-3 (including the affected test `TestVectorInsertByte.java` on the affected platform `macosx-aarch64-debug`).

This pull request has now been integrated.

Changeset: 05ef8f46
Author:    Roberto Castañeda Lozano <rcastanedalo at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/05ef8f4611fb9908f40ed8944da3429acdf82ef5
Stats:     1 line in 1 file changed: 1 ins; 0 del; 0 mod

8370853: IGV: SEGV in IdealGraphPrinter::print after JDK-8370569

Reviewed-by: dfenacci, aseoane, thartmann

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

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


More information about the hotspot-compiler-dev mailing list