< prev index next >
src/share/vm/classfile/protectionDomainCache.cpp
Print this page
rev 13265 : imported patch 8181917-refactor-ul-logstream
*** 23,32 ****
--- 23,34 ----
*/
#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,65 ****
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();
}
*p = entry->next();
free_entry(entry);
}
entry = *p;
--- 53,68 ----
ProtectionDomainCacheEntry* entry = bucket(i);
while (entry != NULL) {
if (is_alive->do_object_b(entry->literal())) {
p = entry->next_addr();
} else {
! 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 >