diff --git a/src/hotspot/share/opto/output.cpp b/src/hotspot/share/opto/output.cpp index 43c46a0eb8f..8449f192924 100644 --- a/src/hotspot/share/opto/output.cpp +++ b/src/hotspot/share/opto/output.cpp @@ -1272,7 +1272,6 @@ void PhaseOutput::estimate_buffer_size(int& const_req) { } // Compute prolog code size - _method_size = 0; _frame_slots = OptoReg::reg2stack(C->matcher()->_old_SP) + C->regalloc()->_framesize; assert(_frame_slots >= 0 && _frame_slots < 1000000, "sanity check"); diff --git a/src/hotspot/share/opto/output.hpp b/src/hotspot/share/opto/output.hpp index 84298750fea..c21bca1b56b 100644 --- a/src/hotspot/share/opto/output.hpp +++ b/src/hotspot/share/opto/output.hpp @@ -116,7 +116,6 @@ class C2SafepointPollStubTable { class PhaseOutput : public Phase { private: // Instruction bits passed off to the VM - int _method_size; // Size of nmethod code segment in bytes CodeBuffer _code_buffer; // Where the code is assembled int _first_block_size; // Size of unvalidated entry point code / OSR poison code ExceptionHandlerTable _handler_table; // Table of native-code exception handlers @@ -205,7 +204,6 @@ class PhaseOutput : public Phase { void install(); // Instruction bits passed off to the VM - int code_size() { return _method_size; } CodeBuffer* code_buffer() { return &_code_buffer; } int first_block_size() { return _first_block_size; } void set_frame_complete(int off) { if (!in_scratch_emit_size()) { _code_offsets.set_value(CodeOffsets::Frame_Complete, off); } }