hotspot/src/cpu/x86/vm/methodHandles_x86.cpp
changeset 10514 e229a19078cf
parent 10261 8463abc614bc
child 10545 fec876499aae
--- a/hotspot/src/cpu/x86/vm/methodHandles_x86.cpp	Fri Sep 02 04:28:59 2011 -0700
+++ b/hotspot/src/cpu/x86/vm/methodHandles_x86.cpp	Fri Sep 02 20:58:21 2011 -0700
@@ -1343,6 +1343,13 @@
     }
     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: