comparison src/share/vm/oops/constMethod.cpp @ 6940:18fb7da42534

8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu Contributed-by: harold.seigel@oracle.com
author coleenp
date Tue, 06 Nov 2012 15:09:37 -0500
parents 4735d2c84362
children b2dbd323c668
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
111 int extra_words = align_size_up(extra_bytes, BytesPerWord) / BytesPerWord; 111 int extra_words = align_size_up(extra_bytes, BytesPerWord) / BytesPerWord;
112 return align_object_size(header_size() + extra_words); 112 return align_object_size(header_size() + extra_words);
113 } 113 }
114 114
115 Method* ConstMethod::method() const { 115 Method* ConstMethod::method() const {
116 return InstanceKlass::cast(_constants->pool_holder())->method_with_idnum( 116 return _constants->pool_holder()->method_with_idnum(_method_idnum);
117 _method_idnum);
118 } 117 }
119 118
120 // linenumber table - note that length is unknown until decompression, 119 // linenumber table - note that length is unknown until decompression,
121 // see class CompressedLineNumberReadStream. 120 // see class CompressedLineNumberReadStream.
122 121