adlc-parser
authorOpenJDK Team <openjdk-17@packages.debian.org>
Mon, 9 Sep 2024 13:48:20 +0000 (15:48 +0200)
committerMatthias Klose <doko@ubuntu.com>
Mon, 9 Sep 2024 13:48:20 +0000 (15:48 +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 6f1a5997511e2234fe213699627943515d5a9cd0..99312bdc225ce6993e59ac661c2221e98480132f 100644 (file)
@@ -436,6 +436,10 @@ void AllocClass::output(FILE *fp) {       // Write info to output files
 //==============================Frame Handling=================================
 //------------------------------FrameForm--------------------------------------
 FrameForm::FrameForm() {
+  _sync_stack_slots = NULL;
+  _inline_cache_reg = NULL;
+  _interpreter_frame_pointer_reg = NULL;
+  _cisc_spilling_operand_name = NULL;
   _frame_pointer = NULL;
   _c_frame_pointer = NULL;
   _alignment = NULL;
@@ -444,7 +448,6 @@ FrameForm::FrameForm() {
   _varargs_C_out_slots_killed = NULL;
   _return_value = NULL;
   _c_return_value = NULL;
-  _interpreter_frame_pointer_reg = NULL;
 }
 
 FrameForm::~FrameForm() {