OpenJDK / jigsaw / jake / hotspot
changeset 9337:56344afc8f61
Remove -XX:+TraceAccessControlErrors
author | lfoltan |
---|---|
date | Tue, 20 Oct 2015 10:33:40 -0400 |
parents | 9d03e40fb80d |
children | d3eb015445d3 |
files | src/share/vm/runtime/globals.hpp src/share/vm/runtime/reflection.cpp |
diffstat | 2 files changed, 0 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.hpp Mon Oct 19 14:22:46 2015 -0400 +++ b/src/share/vm/runtime/globals.hpp Tue Oct 20 10:33:40 2015 -0400 @@ -1510,9 +1510,6 @@ product(bool, TraceMonitorInflation, false, \ "Trace monitor inflation in JVM") \ \ - product(bool, TraceAccessControlErrors, false, \ - "Trace access control errors") \ - \ /* gc */ \ \ product(bool, UseSerialGC, false, \
--- a/src/share/vm/runtime/reflection.cpp Mon Oct 19 14:22:46 2015 -0400 +++ b/src/share/vm/runtime/reflection.cpp Tue Oct 20 10:33:40 2015 -0400 @@ -484,13 +484,6 @@ // Establish readability, check if module_from is allowed to read module_to. if (!module_from->can_read(module_to)) { - if (TraceAccessControlErrors) { - ResourceMark rm; - tty->print_cr("Type in module %s (%s) cannot access type in module %s (%s), not readable", - module_from->name()->as_C_string(), current_class->external_name(), - module_to->is_named() ? module_to->name()->as_C_string() : UNNAMED_MODULE, - new_class->external_name()); - } return MODULE_NOT_READABLE; } @@ -512,14 +505,6 @@ // or // module_to exports T unqualifiedly to all modules (checked above). if (!package_to->is_qexported_to(module_from)) { - if (TraceAccessControlErrors) { - ResourceMark rm; - tty->print_cr("Type in module %s (%s) cannot access type in module %s (%s), not exported", - module_from->is_named() ? module_from->name()->as_C_string() : UNNAMED_MODULE, - current_class->external_name(), - module_to->is_named() ? module_to->name()->as_C_string() : UNNAMED_MODULE, - new_class->external_name()); - } return TYPE_NOT_EXPORTED; } return ACCESS_OK;