Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/method.hpp @ 22886:fdde6a70ea85
8046246: the constantPoolCacheOopDesc::adjust_method_entries() used in RedefineClasses does not scale
Summary: optimize the adjust_method_entries functions by using the orig_method_idnum() function
Reviewed-by: coleenp, dcubed
author | sspitsyn |
---|---|
date | Tue, 17 Mar 2015 17:11:14 -0700 |
parents | 367427923e39 |
children | bf41eee321e5 |
comparison
equal
deleted
inserted
replaced
22885:367427923e39 | 22886:fdde6a70ea85 |
---|---|
263 // index into InstanceKlass methods() array | 263 // index into InstanceKlass methods() array |
264 // note: also used by jfr | 264 // note: also used by jfr |
265 u2 method_idnum() const { return constMethod()->method_idnum(); } | 265 u2 method_idnum() const { return constMethod()->method_idnum(); } |
266 void set_method_idnum(u2 idnum) { constMethod()->set_method_idnum(idnum); } | 266 void set_method_idnum(u2 idnum) { constMethod()->set_method_idnum(idnum); } |
267 | 267 |
268 u2 orig_method_idnum() const { return constMethod()->orig_method_idnum(); } | |
269 void set_orig_method_idnum(u2 idnum) { constMethod()->set_orig_method_idnum(idnum); } | |
270 | |
268 // code size | 271 // code size |
269 int code_size() const { return constMethod()->code_size(); } | 272 int code_size() const { return constMethod()->code_size(); } |
270 | 273 |
271 // method size | 274 // method size |
272 int method_size() const { return _method_size; } | 275 int method_size() const { return _method_size; } |