On Wed, 14 Apr 2021 00:35:55 GMT, Tom Rodriguez <ne...@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