adlc-parser
authorOpenJDK Team <openjdk-21@packages.debian.org>
Thu, 17 Jul 2025 14:12:28 +0000 (16:12 +0200)
committerMatthias Klose <doko@ubuntu.com>
Thu, 17 Jul 2025 14:12:28 +0000 (16:12 +0200)
# 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

index b4b8d6e5ef6f8995dc629e7fd75fcc5be3ca6a89..cb81d7fe9f52e2d27a4d06a92d84de78ae8c01f1 100644 (file)
@@ -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() {