RFR: 8265180: JvmtiCompiledMethodLoadEvent should include the stub section of nmethods
Stefan Karlsson
stefank at openjdk.java.net
Wed Apr 14 07:54:56 UTC 2021
On Wed, 14 Apr 2021 00:35:55 GMT, Tom Rodriguez <never at openjdk.org> wrote:
> 8265180: JvmtiCompiledMethodLoadEvent should include the stub section of nmethods
src/hotspot/share/prims/jvmtiExport.cpp line 1111:
> 1109: : JvmtiMethodEventMark(thread,methodHandle(thread, nm->method())) {
> 1110: _code_data = nm->code_begin();
> 1111: _code_size = (jint)pointer_delta(nm->code_end(), nm->code_begin(), sizeof(char));
Could CodeBlob::code_size be used instead?:
int code_size() const { return code_end() - code_begin(); }
-------------
PR: https://git.openjdk.java.net/jdk/pull/3481
More information about the serviceability-dev
mailing list