mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7071307: MethodHandle bimorphic inlining should consider the frequency
Reviewed-by: twisti, roland, kvn, iveresov
This commit is contained in:
parent
1038fed51d
commit
32fd1b087d
20 changed files with 346 additions and 61 deletions
|
@ -1343,6 +1343,13 @@ void MethodHandles::generate_method_handle_stub(MacroAssembler* _masm, MethodHan
|
|||
}
|
||||
break;
|
||||
|
||||
case _adapter_opt_profiling:
|
||||
if (java_lang_invoke_CountingMethodHandle::vmcount_offset_in_bytes() != 0) {
|
||||
Address rcx_mh_vmcount(rcx_recv, java_lang_invoke_CountingMethodHandle::vmcount_offset_in_bytes());
|
||||
__ incrementl(rcx_mh_vmcount);
|
||||
}
|
||||
// fall through
|
||||
|
||||
case _adapter_retype_only:
|
||||
case _adapter_retype_raw:
|
||||
// immediately jump to the next MH layer:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue