hotspot/src/share/vm/runtime/arguments.cpp
changeset 46370 7a0ae73888ff
parent 46367 6e532778cb35
parent 44470 d10b1eca0b45
child 46377 e2660702788f
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Thu Apr 06 21:14:07 2017 +0000
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Thu Apr 06 22:13:13 2017 +0000
@@ -2863,6 +2863,10 @@
       if (res != JNI_OK) {
         return res;
       }
+    } else if (match_option(option, "--permit-illegal-access")) {
+      if (!create_property("jdk.module.permitIllegalAccess", "true", ExternalProperty)) {
+        return JNI_ENOMEM;
+      }
     // -agentlib and -agentpath
     } else if (match_option(option, "-agentlib:", &tail) ||
           (is_absolute_path = match_option(option, "-agentpath:", &tail))) {
@@ -3105,6 +3109,7 @@
     // -Xprof
     } else if (match_option(option, "-Xprof")) {
 #if INCLUDE_FPROF
+      log_warning(arguments)("Option -Xprof was deprecated in version 9 and will likely be removed in a future release.");
       _has_profile = true;
 #else // INCLUDE_FPROF
       jio_fprintf(defaultStream::error_stream(),