equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "classfile/protectionDomainCache.hpp" |
26 #include "classfile/protectionDomainCache.hpp" |
27 #include "classfile/systemDictionary.hpp" |
27 #include "classfile/systemDictionary.hpp" |
|
28 #include "logging/log.hpp" |
|
29 #include "logging/logStream.hpp" |
28 #include "memory/iterator.hpp" |
30 #include "memory/iterator.hpp" |
29 #include "memory/resourceArea.hpp" |
31 #include "memory/resourceArea.hpp" |
30 #include "oops/oop.inline.hpp" |
32 #include "oops/oop.inline.hpp" |
31 #include "utilities/hashtable.inline.hpp" |
33 #include "utilities/hashtable.inline.hpp" |
32 |
34 |
51 ProtectionDomainCacheEntry* entry = bucket(i); |
53 ProtectionDomainCacheEntry* entry = bucket(i); |
52 while (entry != NULL) { |
54 while (entry != NULL) { |
53 if (is_alive->do_object_b(entry->literal())) { |
55 if (is_alive->do_object_b(entry->literal())) { |
54 p = entry->next_addr(); |
56 p = entry->next_addr(); |
55 } else { |
57 } else { |
56 if (log_is_enabled(Debug, protectiondomain)) { |
58 LogTarget(Debug, protectiondomain) lt; |
57 outputStream* log = Log(protectiondomain)::debug_stream(); |
59 if (lt.is_enabled()) { |
58 log->print("protection domain unlinked: "); |
60 LogStream ls(lt); |
59 entry->literal()->print_value_on(log); |
61 ls.print("protection domain unlinked: "); |
60 log->cr(); |
62 entry->literal()->print_value_on(&ls); |
|
63 ls.cr(); |
61 } |
64 } |
62 *p = entry->next(); |
65 *p = entry->next(); |
63 free_entry(entry); |
66 free_entry(entry); |
64 } |
67 } |
65 entry = *p; |
68 entry = *p; |