src/hotspot/share/oops/method.cpp
changeset 59252 623722a6aeb9
parent 59247 56bf71d64d51
child 59290 97d13893ec3c
equal deleted inserted replaced
59251:4cbfa5077d68 59252:623722a6aeb9
   567   return mh->method_counters();
   567   return mh->method_counters();
   568 }
   568 }
   569 
   569 
   570 bool Method::init_method_counters(MethodCounters* counters) {
   570 bool Method::init_method_counters(MethodCounters* counters) {
   571   // Try to install a pointer to MethodCounters, return true on success.
   571   // Try to install a pointer to MethodCounters, return true on success.
   572   return Atomic::replace_if_null(counters, &_method_counters);
   572   return Atomic::replace_if_null(&_method_counters, counters);
   573 }
   573 }
   574 
   574 
   575 int Method::extra_stack_words() {
   575 int Method::extra_stack_words() {
   576   // not an inline function, to avoid a header dependency on Interpreter
   576   // not an inline function, to avoid a header dependency on Interpreter
   577   return extra_stack_entries() * Interpreter::stackElementSize;
   577   return extra_stack_entries() * Interpreter::stackElementSize;