8388923: Avoid local initialized unused variables in Hotspot

Reviewed-by: amitkumar, aph
This commit is contained in:
Matthias Baesken 2026-07-28 07:49:47 +00:00
parent 3092edb9c7
commit 094ef7904f
3 changed files with 2 additions and 9 deletions

View File

@ -2138,9 +2138,7 @@ uint MachSpillCopyNode::implementation(C2_MacroAssembler* masm,
OptoReg::Name dst_second = ra_->get_reg_second(this);
OptoReg::Name dst_first = ra_->get_reg_first(this);
enum RC src_second_rc = rc_class(src_second);
enum RC src_first_rc = rc_class(src_first);
enum RC dst_second_rc = rc_class(dst_second);
enum RC dst_first_rc = rc_class(dst_first);
assert(OptoReg::is_valid(src_first) && OptoReg::is_valid(dst_first),

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2026, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
@ -345,9 +345,6 @@ void AbstractDisassembler::decode_range_abstract(address range_start, address ra
// it respects the actual instruction length where possible.
void AbstractDisassembler::decode_abstract(address start, address end, outputStream* ost,
const int max_instr_size_in_bytes) {
int idx = 0;
address pos = start;
outputStream* st = (ost == nullptr) ? tty : ost;
st->bol();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -793,8 +793,6 @@ public:
int rm_index_diff = _offset - rm._offset;
int rm_hwm_tr = (int)rm._hwm - rm_index_diff;
int rm_lwm_tr = (int)rm._lwm - rm_index_diff;
int rm_rm_max_tr = (int)rm.rm_word_max_index() - rm_index_diff;
int rm_rm_size_tr = (int)rm._rm_size_in_words - rm_index_diff;
int hwm = MIN2((int)_hwm, rm_hwm_tr);
int lwm = MAX2((int)_lwm, rm_lwm_tr);
for (int i = lwm; i <= hwm; i++) {