src/hotspot/share/oops/method.cpp
changeset 48488 51825789dd89
parent 47687 fb290fd1f9d4
child 48794 ea0d0781c63c
equal deleted inserted replaced
48487:abf1d797e380 48488:51825789dd89
   444   return mh->method_counters();
   444   return mh->method_counters();
   445 }
   445 }
   446 
   446 
   447 bool Method::init_method_counters(MethodCounters* counters) {
   447 bool Method::init_method_counters(MethodCounters* counters) {
   448   // Try to install a pointer to MethodCounters, return true on success.
   448   // Try to install a pointer to MethodCounters, return true on success.
   449   return Atomic::cmpxchg(counters, &_method_counters, (MethodCounters*)NULL) == NULL;
   449   return Atomic::replace_if_null(counters, &_method_counters);
   450 }
   450 }
   451 
   451 
   452 void Method::cleanup_inline_caches() {
   452 void Method::cleanup_inline_caches() {
   453   // The current system doesn't use inline caches in the interpreter
   453   // The current system doesn't use inline caches in the interpreter
   454   // => nothing to do (keep this method around for future use)
   454   // => nothing to do (keep this method around for future use)