summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2016-05-06 16:52:36 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2016-05-09 08:06:00 +0000
commit95bc2f29ef2e9e6b7a71cd123df0c4a1063be1d7 (patch)
treed8936f28c42115ac95402dad651fcd7c6ee91c40
parent2ded6f21bcf7055b40fdd97f9277488451e4e0ec (diff)
Fix braino when parsing invoke transition weight.
bug:27865109 Change-Id: I73e2763216b5596f601c456076c3b01c1dd000da
-rw-r--r--runtime/jit/jit.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index e9317a5435..dcc6300636 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -103,13 +103,13 @@ JitOptions* JitOptions::CreateFromRuntimeArguments(const RuntimeArgumentMap& opt
}
if (options.Exists(RuntimeArgumentMap::JITInvokeTransitionWeight)) {
+ jit_options->invoke_transition_weight_ =
+ *options.Get(RuntimeArgumentMap::JITInvokeTransitionWeight);
if (jit_options->invoke_transition_weight_ > jit_options->warmup_threshold_) {
LOG(FATAL) << "Invoke transition weight is above the warmup threshold.";
} else if (jit_options->invoke_transition_weight_ == 0) {
- LOG(FATAL) << "Invoke transition ratio cannot be 0.";
+ LOG(FATAL) << "Invoke transition weight cannot be 0.";
}
- jit_options->invoke_transition_weight_ =
- *options.Get(RuntimeArgumentMap::JITInvokeTransitionWeight);
} else {
jit_options->invoke_transition_weight_ = std::max(
jit_options->warmup_threshold_ / Jit::kDefaultInvokeTransitionWeightRatio,