diff --git a/src/hotspot/share/opto/output.cpp b/src/hotspot/share/opto/output.cpp index 988e6e42b8c..c5123e24c7c 100644 --- a/src/hotspot/share/opto/output.cpp +++ b/src/hotspot/share/opto/output.cpp @@ -1203,7 +1203,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 d74751ddbf6..a52279a8d59 100644 --- a/src/hotspot/share/opto/output.hpp +++ b/src/hotspot/share/opto/output.hpp @@ -77,7 +77,6 @@ class BufferSizingData { 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 @@ -166,7 +165,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); } }