< prev index next >
src/hotspot/share/oops/method.cpp
Print this page
rev 47408 : [mq]: no_cmpxchg_if_null
rev 47404 : [mq]: load_ptr_acquire
rev 47401 : [mq]: cmpxchg_if_null
rev 47400 : [mq]: cmpxchg_ptr
rev 47216 : 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
*** 444,454 ****
return mh->method_counters();
}
bool Method::init_method_counters(MethodCounters* counters) {
// Try to install a pointer to MethodCounters, return true on success.
! return Atomic::cmpxchg_if_null(counters, &_method_counters);
}
void Method::cleanup_inline_caches() {
// The current system doesn't use inline caches in the interpreter
// => nothing to do (keep this method around for future use)
--- 444,454 ----
return mh->method_counters();
}
bool Method::init_method_counters(MethodCounters* counters) {
// Try to install a pointer to MethodCounters, return true on success.
! return Atomic::cmpxchg(counters, &_method_counters, (MethodCounters*)NULL) == NULL;
}
void Method::cleanup_inline_caches() {
// The current system doesn't use inline caches in the interpreter
// => nothing to do (keep this method around for future use)
< prev index next >