comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 22685:3039e5bb94cb

initialize JVMCI eagerly if either the PrintFlags or ShowFlags JVMCI option is present
author Doug Simon <doug.simon@oracle.com>
date Thu, 15 Oct 2015 17:32:19 +0200
parents 1bbd4a7c274b
children 316e768645c0
comparison
equal deleted inserted replaced
22684:ceca35d52380 22685:3039e5bb94cb
936 936
937 void JVMCIRuntime::save_compiler(const char* compiler) { 937 void JVMCIRuntime::save_compiler(const char* compiler) {
938 assert(compiler != NULL, "npe"); 938 assert(compiler != NULL, "npe");
939 assert(_compiler == NULL, "cannot reassign JVMCI compiler"); 939 assert(_compiler == NULL, "cannot reassign JVMCI compiler");
940 _compiler = compiler; 940 _compiler = compiler;
941 }
942
943 void JVMCIRuntime::maybe_print_flags(TRAPS) {
944 if (_options != NULL) {
945 for (int i = 0; i < _options_count; i++) {
946 SystemProperty* p = _options[i];
947 const char* name = p->key() + OPTION_PREFIX_LEN;
948 if (strcmp(name, "PrintFlags") == 0 || strcmp(name, "ShowFlags") == 0) {
949 JVMCIRuntime::ensure_jvmci_class_loader_is_initialized();
950 jvmci_compute_offsets();
951 HandleMark hm;
952 ResourceMark rm;
953 JVMCIRuntime::get_HotSpotJVMCIRuntime(CHECK);
954 return;
955 }
956 }
957 }
941 } 958 }
942 959
943 void JVMCIRuntime::save_options(SystemProperty* props) { 960 void JVMCIRuntime::save_options(SystemProperty* props) {
944 int count = 0; 961 int count = 0;
945 SystemProperty* first = NULL; 962 SystemProperty* first = NULL;