From 14fbd44f4ae5c934a3e433ac49a37a8312322005 Mon Sep 17 00:00:00 2001 From: OpenJDK Team Date: Wed, 16 Oct 2024 10:41:47 +0200 Subject: [PATCH] adlc-parser # DP: fixes an uninitialized memory issue in adlc # DP: fixes an uninitialized memory issue in adlc Gbp-Pq: Name adlc-parser.diff --- src/hotspot/share/adlc/formsopt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hotspot/share/adlc/formsopt.cpp b/src/hotspot/share/adlc/formsopt.cpp index b4b8d6e5e..cb81d7fe9 100644 --- a/src/hotspot/share/adlc/formsopt.cpp +++ b/src/hotspot/share/adlc/formsopt.cpp @@ -436,6 +436,10 @@ void AllocClass::output(FILE *fp) { // Write info to output files //==============================Frame Handling================================= //------------------------------FrameForm-------------------------------------- FrameForm::FrameForm() { + _sync_stack_slots = nullptr; + _inline_cache_reg = nullptr; + _interpreter_frame_pointer_reg = nullptr; + _cisc_spilling_operand_name = nullptr; _frame_pointer = nullptr; _c_frame_pointer = nullptr; _alignment = nullptr; @@ -444,7 +448,6 @@ FrameForm::FrameForm() { _varargs_C_out_slots_killed = nullptr; _return_value = nullptr; _c_return_value = nullptr; - _interpreter_frame_pointer_reg = nullptr; } FrameForm::~FrameForm() { -- 2.30.2