Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/methodCounters.cpp @ 10376:a1ebd310d5c1
8014912: Restore PrintSharedSpaces functionality after NPG
Summary: Added dumping of object sizes in CDS archive, sorted by MetaspaceObj::Type
Reviewed-by: coleenp, acorn
author | iklam |
---|---|
date | Tue, 28 May 2013 16:36:19 -0700 |
parents | aeaca88565e6 |
children | 88672775a26c 631667807de7 |
comparison
equal
deleted
inserted
replaced
10353:9ea643afcaaf | 10376:a1ebd310d5c1 |
---|---|
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/thread.inline.hpp" |
27 | 27 |
28 MethodCounters* MethodCounters::allocate(ClassLoaderData* loader_data, TRAPS) { | 28 MethodCounters* MethodCounters::allocate(ClassLoaderData* loader_data, TRAPS) { |
29 return new(loader_data, size(), false, THREAD) MethodCounters(); | 29 return new(loader_data, size(), false, MetaspaceObj::MethodCountersType, THREAD) MethodCounters(); |
30 } | 30 } |
31 | 31 |
32 void MethodCounters::clear_counters() { | 32 void MethodCounters::clear_counters() { |
33 invocation_counter()->reset(); | 33 invocation_counter()->reset(); |
34 backedge_counter()->reset(); | 34 backedge_counter()->reset(); |