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