< prev index next >
src/share/vm/classfile/dictionary.cpp
Print this page
rev 13288 : imported patch 8181917-refactor-ul-logstream
*** 27,36 ****
--- 27,38 ----
#include "classfile/sharedClassUtil.hpp"
#include "classfile/dictionary.hpp"
#include "classfile/protectionDomainCache.hpp"
#include "classfile/systemDictionary.hpp"
#include "classfile/systemDictionaryShared.hpp"
+ #include "logging/log.hpp"
+ #include "logging/logStream.hpp"
#include "memory/iterator.hpp"
#include "memory/resourceArea.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/orderAccess.inline.hpp"
#include "utilities/hashtable.inline.hpp"
*** 134,147 ****
// without locks. The new ProtectionDomainEntry must be
// complete before other threads can be allowed to see it
// via a store to _pd_set.
OrderAccess::release_store_ptr(&_pd_set, new_head);
}
! if (log_is_enabled(Trace, protectiondomain)) {
! ResourceMark rm;
! outputStream* log = Log(protectiondomain)::trace_stream();
! print_count(log);
}
}
void Dictionary::do_unloading() {
--- 136,149 ----
// without locks. The new ProtectionDomainEntry must be
// complete before other threads can be allowed to see it
// via a store to _pd_set.
OrderAccess::release_store_ptr(&_pd_set, new_head);
}
! LogTarget(Trace, protectiondomain) lt;
! if (lt.is_enabled()) {
! LogStream ls(lt);
! print_count(&ls);
}
}
void Dictionary::do_unloading() {
< prev index next >