1.1 --- a/src/cpu/x86/vm/methodHandles_x86.cpp Fri Sep 02 04:28:59 2011 -0700 1.2 +++ b/src/cpu/x86/vm/methodHandles_x86.cpp Fri Sep 02 20:58:21 2011 -0700 1.3 @@ -1343,6 +1343,13 @@ 1.4 } 1.5 break; 1.6 1.7 + case _adapter_opt_profiling: 1.8 + if (java_lang_invoke_CountingMethodHandle::vmcount_offset_in_bytes() != 0) { 1.9 + Address rcx_mh_vmcount(rcx_recv, java_lang_invoke_CountingMethodHandle::vmcount_offset_in_bytes()); 1.10 + __ incrementl(rcx_mh_vmcount); 1.11 + } 1.12 + // fall through 1.13 + 1.14 case _adapter_retype_only: 1.15 case _adapter_retype_raw: 1.16 // immediately jump to the next MH layer: