src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/runtime

src/share/vm/runtime/arguments.cpp

Print this page




3906     // We now have a complete token
3907 
3908     JavaVMOption option;
3909     option.optionString = opt_hd;
3910     option.extraInfo = NULL;
3911 
3912     options->append(option);                // Fill in option
3913 
3914     rd++;  // Advance to next character
3915   }
3916 
3917   // Fill out JavaVMInitArgs structure.
3918   jint status = vm_args->set_args(options);
3919 
3920   delete options;
3921   return status;
3922 }
3923 
3924 void Arguments::set_shared_spaces_flags() {
3925   if (DumpSharedSpaces) {
3926     if (Arguments::get_patch_mod_prefix() != NULL) {
3927       vm_exit_during_initialization(
3928         "Cannot use the following option when dumping the shared archive: --patch-module");
3929     }
3930 
3931     if (RequireSharedSpaces) {
3932       warning("Cannot dump shared archive while using shared archive");
3933     }
3934     UseSharedSpaces = false;
3935 #ifdef _LP64
3936     if (!UseCompressedOops || !UseCompressedClassPointers) {
3937       vm_exit_during_initialization(
3938         "Cannot dump shared archive when UseCompressedOops or UseCompressedClassPointers is off.", NULL);
3939     }
3940   } else {
3941     if (!UseCompressedOops || !UseCompressedClassPointers) {
3942       no_shared_spaces("UseCompressedOops and UseCompressedClassPointers must be on for UseSharedSpaces.");
3943     }
3944 #endif
3945   }
3946 }
3947 
3948 // Sharing support
3949 // Construct the path to the archive




3906     // We now have a complete token
3907 
3908     JavaVMOption option;
3909     option.optionString = opt_hd;
3910     option.extraInfo = NULL;
3911 
3912     options->append(option);                // Fill in option
3913 
3914     rd++;  // Advance to next character
3915   }
3916 
3917   // Fill out JavaVMInitArgs structure.
3918   jint status = vm_args->set_args(options);
3919 
3920   delete options;
3921   return status;
3922 }
3923 
3924 void Arguments::set_shared_spaces_flags() {
3925   if (DumpSharedSpaces) {




3926 
3927     if (RequireSharedSpaces) {
3928       warning("Cannot dump shared archive while using shared archive");
3929     }
3930     UseSharedSpaces = false;
3931 #ifdef _LP64
3932     if (!UseCompressedOops || !UseCompressedClassPointers) {
3933       vm_exit_during_initialization(
3934         "Cannot dump shared archive when UseCompressedOops or UseCompressedClassPointers is off.", NULL);
3935     }
3936   } else {
3937     if (!UseCompressedOops || !UseCompressedClassPointers) {
3938       no_shared_spaces("UseCompressedOops and UseCompressedClassPointers must be on for UseSharedSpaces.");
3939     }
3940 #endif
3941   }
3942 }
3943 
3944 // Sharing support
3945 // Construct the path to the archive


src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File