diff --git a/src/hotspot/cpu/x86/x86.ad b/src/hotspot/cpu/x86/x86.ad index b3e5a42926c..a1bad907138 100644 --- a/src/hotspot/cpu/x86/x86.ad +++ b/src/hotspot/cpu/x86/x86.ad @@ -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), diff --git a/src/hotspot/share/compiler/abstractDisassembler.cpp b/src/hotspot/share/compiler/abstractDisassembler.cpp index df7781e93d5..5fecf2c866e 100644 --- a/src/hotspot/share/compiler/abstractDisassembler.cpp +++ b/src/hotspot/share/compiler/abstractDisassembler.cpp @@ -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(); diff --git a/src/hotspot/share/opto/regmask.hpp b/src/hotspot/share/opto/regmask.hpp index 99b10c1c557..4ba891bcb5a 100644 --- a/src/hotspot/share/opto/regmask.hpp +++ b/src/hotspot/share/opto/regmask.hpp @@ -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++) {