Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCompiler.cpp @ 9913:35f93560b1f0
ensure that <clinit> for HotSpotOptions is called irrespective of whether and -G: options are specified
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 06 Jun 2013 17:27:07 +0200 |
parents | 2dc020b33a6e |
children | 0f7ca53be929 |
comparison
equal
deleted
inserted
replaced
9912:fbad7372eccd | 9913:35f93560b1f0 |
---|---|
83 graal_compute_offsets(); | 83 graal_compute_offsets(); |
84 | 84 |
85 { | 85 { |
86 GRAAL_VM_ENTRY_MARK; | 86 GRAAL_VM_ENTRY_MARK; |
87 HandleMark hm; | 87 HandleMark hm; |
88 VMToCompiler::initOptions(); | |
88 for (int i = 0; i < Arguments::num_graal_args(); ++i) { | 89 for (int i = 0; i < Arguments::num_graal_args(); ++i) { |
89 const char* arg = Arguments::graal_args_array()[i]; | 90 const char* arg = Arguments::graal_args_array()[i]; |
90 Handle option = java_lang_String::create_from_str(arg, THREAD); | 91 Handle option = java_lang_String::create_from_str(arg, THREAD); |
91 jboolean result = VMToCompiler::setOption(option); | 92 jboolean result = VMToCompiler::setOption(option); |
92 if (!result) { | 93 if (!result) { |