hotspot/src/share/vm/runtime/arguments.cpp
changeset 33222 e0a340f4ab6e
parent 33144 c56850e328fc
child 33223 3c964cd8be5c
equal deleted inserted replaced
33219:08f642d9214f 33222:e0a340f4ab6e
  3327       // disable scavenge before parallel mark-compact
  3327       // disable scavenge before parallel mark-compact
  3328       if (FLAG_SET_CMDLINE(bool, ScavengeBeforeFullGC, false) != Flag::SUCCESS) {
  3328       if (FLAG_SET_CMDLINE(bool, ScavengeBeforeFullGC, false) != Flag::SUCCESS) {
  3329         return JNI_EINVAL;
  3329         return JNI_EINVAL;
  3330       }
  3330       }
  3331 #endif
  3331 #endif
  3332     } else if (match_option(option, "-XX:MaxDirectMemorySize=", &tail)) {
       
  3333       julong max_direct_memory_size = 0;
       
  3334       ArgsRange errcode = parse_memory_size(tail, &max_direct_memory_size, 0);
       
  3335       if (errcode != arg_in_range) {
       
  3336         jio_fprintf(defaultStream::error_stream(),
       
  3337                     "Invalid maximum direct memory size: %s\n",
       
  3338                     option->optionString);
       
  3339         describe_range_error(errcode);
       
  3340         return JNI_EINVAL;
       
  3341       }
       
  3342       if (FLAG_SET_CMDLINE(size_t, MaxDirectMemorySize, max_direct_memory_size) != Flag::SUCCESS) {
       
  3343         return JNI_EINVAL;
       
  3344       }
       
  3345 #if !INCLUDE_MANAGEMENT
  3332 #if !INCLUDE_MANAGEMENT
  3346     } else if (match_option(option, "-XX:+ManagementServer")) {
  3333     } else if (match_option(option, "-XX:+ManagementServer")) {
  3347         jio_fprintf(defaultStream::error_stream(),
  3334         jio_fprintf(defaultStream::error_stream(),
  3348           "ManagementServer is not supported in this VM.\n");
  3335           "ManagementServer is not supported in this VM.\n");
  3349         return JNI_ERR;
  3336         return JNI_ERR;