diff options
| author | Mathieu Chartier <mathieuc@google.com> | 2015-03-05 21:45:26 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-05 21:45:27 +0000 |
| commit | 17b8a7ae501c2e55062db79c0ea538d9061e1ee6 (patch) | |
| tree | 753a040fa1ef43651dd36fc4dfeb9377dc88e481 | |
| parent | 66b26662ad0c52c648c9b5ea4a99149091e842b4 (diff) | |
| parent | 184c9dc3bfc500134fdb2fbea0a7fab290c0abb0 (diff) | |
| download | art-17b8a7ae501c2e55062db79c0ea538d9061e1ee6.tar.gz art-17b8a7ae501c2e55062db79c0ea538d9061e1ee6.tar.bz2 art-17b8a7ae501c2e55062db79c0ea538d9061e1ee6.zip | |
Merge "Fix some incorrect IsCompiler instead of IsAotCompiler"
| -rw-r--r-- | runtime/gc/collector/concurrent_copying.cc | 2 | ||||
| -rw-r--r-- | runtime/jdwp/jdwp_main.cc | 2 | ||||
| -rw-r--r-- | runtime/runtime.cc | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/runtime/gc/collector/concurrent_copying.cc b/runtime/gc/collector/concurrent_copying.cc index 057eed187f..dd45ecab7f 100644 --- a/runtime/gc/collector/concurrent_copying.cc +++ b/runtime/gc/collector/concurrent_copying.cc @@ -206,7 +206,7 @@ class FlipCallback : public Closure { } cc->is_marking_ = true; if (UNLIKELY(Runtime::Current()->IsActiveTransaction())) { - CHECK(Runtime::Current()->IsCompiler()); + CHECK(Runtime::Current()->IsAotCompiler()); TimingLogger::ScopedTiming split2("(Paused)VisitTransactionRoots", cc->GetTimings()); Runtime::Current()->VisitTransactionRoots(ConcurrentCopying::ProcessRootCallback, cc); } diff --git a/runtime/jdwp/jdwp_main.cc b/runtime/jdwp/jdwp_main.cc index b6fedd991d..3d69796fb1 100644 --- a/runtime/jdwp/jdwp_main.cc +++ b/runtime/jdwp/jdwp_main.cc @@ -408,7 +408,7 @@ static void* StartJdwpThread(void* arg) { void JdwpState::Run() { Runtime* runtime = Runtime::Current(); CHECK(runtime->AttachCurrentThread("JDWP", true, runtime->GetSystemThreadGroup(), - !runtime->IsCompiler())); + !runtime->IsAotCompiler())); VLOG(jdwp) << "JDWP: thread running"; diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 6d9f20e147..35a9e6f61f 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -846,7 +846,7 @@ bool Runtime::Init(const RuntimeOptions& raw_options, bool ignore_unrecognized) Dbg::ConfigureJdwp(runtime_options.GetOrDefault(Opt::JdwpOptions)); } - if (!IsCompiler()) { + if (!IsAotCompiler()) { // If we are already the compiler at this point, we must be dex2oat. Don't create the jit in // this case. // If runtime_options doesn't have UseJIT set to true then CreateFromRuntimeArguments returns @@ -1551,14 +1551,14 @@ bool Runtime::IsTransactionAborted() const { if (!IsActiveTransaction()) { return false; } else { - DCHECK(IsCompiler()); + DCHECK(IsAotCompiler()); return preinitialization_transaction_->IsAborted(); } } void Runtime::AbortTransactionAndThrowInternalError(Thread* self, const std::string& abort_message) { - DCHECK(IsCompiler()); + DCHECK(IsAotCompiler()); DCHECK(IsActiveTransaction()); // Throwing an exception may cause its class initialization. If we mark the transaction // aborted before that, we may warn with a false alarm. Throwing the exception before @@ -1568,35 +1568,35 @@ void Runtime::AbortTransactionAndThrowInternalError(Thread* self, } void Runtime::ThrowInternalErrorForAbortedTransaction(Thread* self) { - DCHECK(IsCompiler()); + DCHECK(IsAotCompiler()); DCHECK(IsActiveTransaction()); preinitialization_transaction_->ThrowInternalError(self, true); } void Runtime::RecordWriteFieldBoolean(mirror::Object* obj, MemberOffset field_offset, uint8_t value, bool is_volatile) const { - DCHECK(IsCompiler()); + DCHECK(IsAotCompiler()); DCHECK(IsActiveTransaction()); preinitialization_transaction_->RecordWriteFieldBoolean(obj, field_offset, value, is_volatile); } void Runtime::RecordWriteFieldByte(mirror::Object* obj, MemberOffset field_offset, int8_t value, bool is_volatile) const { - DCHECK(IsCompiler()); + DCHECK(IsAotCompiler()); DCHECK(IsActiveTransaction()); preinitialization_transaction_->RecordWriteFieldByte(obj, field_offset, value, is_volatile); } void Runtime::RecordWriteFieldChar(mirror::Object* obj, MemberOffset field_offset, uint16_t value, bool is_volatile) const { - DCHECK(IsCompiler()); + DCHECK(IsAotCompiler()); DCHECK(IsActiveTransaction()); preinitialization_transaction_->RecordWriteFieldChar(obj, field_offset, value, is_volatile); } void Runtime::RecordWriteFieldShort(mirror::Object* obj, MemberOffset field_offset, int16_t value, bool is_volatile) const { - DCHECK(IsCompiler()); + DCHECK(IsAotCompiler()); DCHECK(IsActiveTransaction()); preinitialization_transaction_->RecordWriteFieldShort(obj, field_offset, value, is_volatile); } |
