src/share/vm/classfile/systemDictionary.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/classfile/systemDictionary.cpp Mon Feb 22 11:00:47 2016
--- new/src/share/vm/classfile/systemDictionary.cpp Mon Feb 22 11:00:46 2016
*** 428,443 ****
--- 428,445 ----
TRAPS) {
if(!has_checkPackageAccess()) return;
// Now we have to call back to java to check if the initating class has access
JavaValue result(T_VOID);
! if (TraceProtectionDomainVerification) {
! if (log_is_enabled(Debug, protectiondomain)) {
+ ResourceMark rm;
// Print out trace information
! tty->print_cr("Checking package access");
! tty->print(" - class loader: "); class_loader()->print_value_on(tty); tty->cr();
! tty->print(" - protection domain: "); protection_domain()->print_value_on(tty); tty->cr();
! tty->print(" - loading: "); klass()->print_value_on(tty); tty->cr();
! outputStream* log = LogHandle(protectiondomain)::debug_stream();
! log->print_cr("Checking package access");
! log->print(" - class loader: "); class_loader()->print_value_on(log); log->cr();
! log->print(" - protection domain: "); protection_domain()->print_value_on(log); log->cr();
+ log->print(" - loading: "); klass()->print_value_on(log); log->cr();
}
KlassHandle system_loader(THREAD, SystemDictionary::ClassLoader_klass());
JavaCalls::call_special(&result,
class_loader,
*** 446,462 ****
--- 448,466 ----
vmSymbols::class_protectiondomain_signature(),
Handle(THREAD, klass->java_mirror()),
protection_domain,
THREAD);
! if (TraceProtectionDomainVerification) {
! if (log_is_enabled(Debug, protectiondomain)) {
+ ResourceMark rm;
+ outputStream* log = LogHandle(protectiondomain)::debug_stream();
if (HAS_PENDING_EXCEPTION) {
! tty->print_cr(" -> DENIED !!!!!!!!!!!!!!!!!!!!!");
! log->print_cr(" -> DENIED !!!!!!!!!!!!!!!!!!!!!");
} else {
! tty->print_cr(" -> granted");
! log->print_cr(" -> granted");
}
! tty->cr();
! log->cr();
}
if (HAS_PENDING_EXCEPTION) return;
// If no exception has been thrown, we have validated the protection domain
src/share/vm/classfile/systemDictionary.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File