mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8210155: Lock ClassLoaderDataGraph
In preparation for concurrent class unloading. Reviewed-by: hseigel, eosterlund
This commit is contained in:
parent
71479d029a
commit
eb9259138f
19 changed files with 199 additions and 82 deletions
|
@ -346,6 +346,7 @@ void print_statistics() {
|
|||
|
||||
if (PrintSystemDictionaryAtExit) {
|
||||
ResourceMark rm;
|
||||
MutexLocker mcld(ClassLoaderDataGraph_lock);
|
||||
SystemDictionary::print();
|
||||
ClassLoaderDataGraph::print();
|
||||
}
|
||||
|
@ -494,6 +495,7 @@ void before_exit(JavaThread* thread) {
|
|||
Universe::print_on(&ls_info);
|
||||
if (log.is_trace()) {
|
||||
LogStream ls_trace(log.trace());
|
||||
MutexLocker mcld(ClassLoaderDataGraph_lock);
|
||||
ClassLoaderDataGraph::print_on(&ls_trace);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue