src/share/vm/runtime/arguments.cpp

changeset 3902
3f1ab0c19c30
parent 3901
24b9c7f4cae6
child 3907
90d5a592ea8f
     1.1 --- a/src/share/vm/runtime/arguments.cpp	Mon Jul 02 13:11:28 2012 -0400
     1.2 +++ b/src/share/vm/runtime/arguments.cpp	Tue Jul 03 01:41:29 2012 -0400
     1.3 @@ -2709,6 +2709,17 @@
     1.4          return JNI_EINVAL;
     1.5        }
     1.6        FLAG_SET_CMDLINE(uintx, ConcGCThreads, conc_threads);
     1.7 +    } else if (match_option(option, "-XX:MaxDirectMemorySize=", &tail)) {
     1.8 +      julong max_direct_memory_size = 0;
     1.9 +      ArgsRange errcode = parse_memory_size(tail, &max_direct_memory_size, 0);
    1.10 +      if (errcode != arg_in_range) {
    1.11 +        jio_fprintf(defaultStream::error_stream(),
    1.12 +                    "Invalid maximum direct memory size: %s\n",
    1.13 +                    option->optionString);
    1.14 +        describe_range_error(errcode);
    1.15 +        return JNI_EINVAL;
    1.16 +      }
    1.17 +      FLAG_SET_CMDLINE(uintx, MaxDirectMemorySize, max_direct_memory_size);
    1.18      } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx
    1.19        // Skip -XX:Flags= since that case has already been handled
    1.20        if (strncmp(tail, "Flags=", strlen("Flags=")) != 0) {

mercurial