< prev index next >
src/share/vm/classfile/dictionary.cpp
Print this page
rev 13105 : imported patch 8181917-refactor-ul-logstream-alt1-callsite-changes
@@ -27,10 +27,12 @@
#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,14 +136,14 @@
// 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);
+ LogTarget(Trace, protectiondomain) lt;
+ if (lt.is_enabled()) {
+ LogStream ls(lt);
+ print_count(&ls);
}
}
void Dictionary::do_unloading() {
< prev index next >