equal
deleted
inserted
replaced
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) |