< prev index next >

src/share/vm/oops/constMethod.cpp

Print this page

        

*** 142,152 **** extra_bytes += sizeof(AnnotationArray*); } int extra_words = align_size_up(extra_bytes, BytesPerWord) / BytesPerWord; assert(extra_words == extra_bytes/BytesPerWord, "should already be aligned"); ! return align_object_size(header_size() + extra_words); } Method* ConstMethod::method() const { return _constants->pool_holder()->method_with_idnum(_method_idnum); } --- 142,152 ---- extra_bytes += sizeof(AnnotationArray*); } int extra_words = align_size_up(extra_bytes, BytesPerWord) / BytesPerWord; assert(extra_words == extra_bytes/BytesPerWord, "should already be aligned"); ! return align_metadata_size(header_size() + extra_words); } Method* ConstMethod::method() const { return _constants->pool_holder()->method_with_idnum(_method_idnum); }
*** 490,497 **** uncompressed_table_start = (u2*) method_parameters_start(); } else { uncompressed_table_start = (u2*) m_end; } int gap = (intptr_t) uncompressed_table_start - (intptr_t) compressed_table_end; ! int max_gap = align_object_size(1)*BytesPerWord; guarantee(gap >= 0 && gap < max_gap, "invalid method layout"); } --- 490,497 ---- uncompressed_table_start = (u2*) method_parameters_start(); } else { uncompressed_table_start = (u2*) m_end; } int gap = (intptr_t) uncompressed_table_start - (intptr_t) compressed_table_end; ! int max_gap = align_metadata_size(1)*BytesPerWord; guarantee(gap >= 0 && gap < max_gap, "invalid method layout"); }
< prev index next >