src/share/vm/ci/ciMethod.cpp

Print this page

        

@@ -74,10 +74,14 @@
   _holder(holder),
   _has_injected_profile(false)
 {
   assert(h_m() != NULL, "no null method");
 
+  if (TraceMethodUsage) {
+    h_m()->trace_usage(Thread::current());
+  }
+
   // These fields are always filled in in loaded methods.
   _flags = ciFlags(h_m()->access_flags());
 
   // Easy to compute, so fill them in now.
   _max_stack          = h_m()->max_stack();