Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 9f15164

Browse files
committedJan 5, 2021
8259049: Uninitialized variable after JDK-8257513
Reviewed-by: kvn, thartmann
1 parent db6f393 commit 9f15164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/opto/constantTable.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool ConstantTable::emit(CodeBuffer& cb) const {
150150
"must be: %d == %d", (int)(constant_addr - _masm.code()->consts()->start()), (int)(con.offset()));
151151

152152
// Expand jump-table
153-
address last_addr;
153+
address last_addr = NULL;
154154
for (uint j = 1; j < n->outcnt(); j++) {
155155
last_addr = _masm.address_constant(dummy + j);
156156
if (last_addr == NULL) {

0 commit comments

Comments
 (0)