< prev index next >
src/share/vm/classfile/protectionDomainCache.cpp
Print this page
rev 13105 : imported patch 8181917-refactor-ul-logstream-alt1-callsite-changes
@@ -23,10 +23,12 @@
*/
#include "precompiled.hpp"
#include "classfile/protectionDomainCache.hpp"
#include "classfile/systemDictionary.hpp"
+#include "logging/log.hpp"
+#include "logging/logStream.hpp"
#include "memory/iterator.hpp"
#include "memory/resourceArea.hpp"
#include "oops/oop.inline.hpp"
#include "utilities/hashtable.inline.hpp"
@@ -51,15 +53,16 @@
ProtectionDomainCacheEntry* entry = bucket(i);
while (entry != NULL) {
if (is_alive->do_object_b(entry->literal())) {
p = entry->next_addr();
} else {
- if (log_is_enabled(Debug, protectiondomain)) {
- outputStream* log = Log(protectiondomain)::debug_stream();
- log->print("protection domain unlinked: ");
- entry->literal()->print_value_on(log);
- log->cr();
+ LogTarget(Debug, protectiondomain) lt;
+ if (lt.is_enabled()) {
+ LogStream ls(lt);
+ ls.print("protection domain unlinked: ");
+ entry->literal()->print_value_on(&ls);
+ ls.cr();
}
*p = entry->next();
free_entry(entry);
}
entry = *p;
< prev index next >