comparison src/share/vm/oops/methodCounters.cpp @ 7745:6dc8db7164d2

Added tag jdk9-b49 for changeset 360cd1fc42f1
author katleman
date Thu, 05 Feb 2015 11:43:29 -0800
parents a39c9249f4be
children e8699be63872
comparison
equal deleted inserted replaced
3:ce29729b3963 4:01ac98a7d411
21 * questions. 21 * questions.
22 * 22 *
23 */ 23 */
24 #include "precompiled.hpp" 24 #include "precompiled.hpp"
25 #include "oops/methodCounters.hpp" 25 #include "oops/methodCounters.hpp"
26 #include "runtime/thread.inline.hpp" 26 #include "runtime/handles.inline.hpp"
27 27
28 MethodCounters* MethodCounters::allocate(ClassLoaderData* loader_data, TRAPS) { 28 MethodCounters* MethodCounters::allocate(methodHandle mh, TRAPS) {
29 return new(loader_data, size(), false, MetaspaceObj::MethodCountersType, THREAD) MethodCounters(); 29 ClassLoaderData* loader_data = mh->method_holder()->class_loader_data();
30 return new(loader_data, size(), false, MetaspaceObj::MethodCountersType, THREAD) MethodCounters(mh);
30 } 31 }
31 32
32 void MethodCounters::clear_counters() { 33 void MethodCounters::clear_counters() {
33 invocation_counter()->reset(); 34 invocation_counter()->reset();
34 backedge_counter()->reset(); 35 backedge_counter()->reset();