comparison src/share/vm/classfile/systemDictionary.hpp @ 10405:f2110083203d

8005849: JEP 167: Event-Based JVM Tracing Reviewed-by: acorn, coleenp, sla Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author sla
date Mon, 10 Jun 2013 11:30:51 +0200
parents 43083e670adf
children 836a62f43af9 ca0165daa6ec
comparison
equal deleted inserted replaced
10404:d0add7016434 10405:f2110083203d
29 #include "classfile/classLoader.hpp" 29 #include "classfile/classLoader.hpp"
30 #include "oops/objArrayOop.hpp" 30 #include "oops/objArrayOop.hpp"
31 #include "oops/symbol.hpp" 31 #include "oops/symbol.hpp"
32 #include "runtime/java.hpp" 32 #include "runtime/java.hpp"
33 #include "runtime/reflectionUtils.hpp" 33 #include "runtime/reflectionUtils.hpp"
34 #include "trace/traceTime.hpp"
34 #include "utilities/hashtable.hpp" 35 #include "utilities/hashtable.hpp"
35 #include "utilities/hashtable.inline.hpp" 36 #include "utilities/hashtable.inline.hpp"
37
36 38
37 // The system dictionary stores all loaded classes and maps: 39 // The system dictionary stores all loaded classes and maps:
38 // 40 //
39 // [class name,class loader] -> class i.e. [Symbol*,oop] -> Klass* 41 // [class name,class loader] -> class i.e. [Symbol*,oop] -> Klass*
40 // 42 //
634 static Klass* find_shared_class(Symbol* class_name); 636 static Klass* find_shared_class(Symbol* class_name);
635 637
636 // Setup link to hierarchy 638 // Setup link to hierarchy
637 static void add_to_hierarchy(instanceKlassHandle k, TRAPS); 639 static void add_to_hierarchy(instanceKlassHandle k, TRAPS);
638 640
641 // event based tracing
642 static void post_class_load_event(TracingTime start_time, instanceKlassHandle k,
643 Handle initiating_loader);
639 // We pass in the hashtable index so we can calculate it outside of 644 // We pass in the hashtable index so we can calculate it outside of
640 // the SystemDictionary_lock. 645 // the SystemDictionary_lock.
641 646
642 // Basic find on loaded classes 647 // Basic find on loaded classes
643 static Klass* find_class(int index, unsigned int hash, 648 static Klass* find_class(int index, unsigned int hash,