Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciRuntime.cpp @ 22615:e96c6a52aff2
made JVMCIRuntime::save_options a void function
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 25 Sep 2015 08:58:37 +0200 |
parents | 0851eafff5c9 |
children | 28b99a7a37d0 |
comparison
equal
deleted
inserted
replaced
22614:0851eafff5c9 | 22615:e96c6a52aff2 |
---|---|
942 assert(compiler != NULL, "npe"); | 942 assert(compiler != NULL, "npe"); |
943 assert(_compiler == NULL, "cannot reassign JVMCI compiler"); | 943 assert(_compiler == NULL, "cannot reassign JVMCI compiler"); |
944 _compiler = compiler; | 944 _compiler = compiler; |
945 } | 945 } |
946 | 946 |
947 jint JVMCIRuntime::save_options(SystemProperty* props) { | 947 void JVMCIRuntime::save_options(SystemProperty* props) { |
948 int count = 0; | 948 int count = 0; |
949 SystemProperty* first = NULL; | 949 SystemProperty* first = NULL; |
950 for (SystemProperty* p = props; p != NULL; p = p->next()) { | 950 for (SystemProperty* p = props; p != NULL; p = p->next()) { |
951 if (strncmp(p->key(), OPTION_PREFIX, OPTION_PREFIX_LEN) == 0) { | 951 if (strncmp(p->key(), OPTION_PREFIX, OPTION_PREFIX_LEN) == 0) { |
952 if (first == NULL) { | 952 if (first == NULL) { |
966 insert_pos++; | 966 insert_pos++; |
967 } | 967 } |
968 } | 968 } |
969 assert (insert_pos - _options == count, "must be"); | 969 assert (insert_pos - _options == count, "must be"); |
970 } | 970 } |
971 return JNI_OK; | |
972 } | 971 } |
973 | 972 |
974 Handle JVMCIRuntime::create_Service(const char* name, TRAPS) { | 973 Handle JVMCIRuntime::create_Service(const char* name, TRAPS) { |
975 TempNewSymbol kname = SymbolTable::new_symbol(name, CHECK_NH); | 974 TempNewSymbol kname = SymbolTable::new_symbol(name, CHECK_NH); |
976 Klass* k = resolve_or_fail(kname, CHECK_NH); | 975 Klass* k = resolve_or_fail(kname, CHECK_NH); |