Lines Matching defs:nullptr
129 ConditionVariable* Thread::resume_cond_ = nullptr;
131 bool (*Thread::is_sensitive_thread_hook_)() = nullptr;
132 Thread* Thread::jit_sensitive_thread_ = nullptr;
287 CHECK(tlsPtr_.deoptimization_context_stack != nullptr)
316 /* timeout */ nullptr,
317 nullptr,
351 nullptr,
361 nullptr,
405 nullptr,
406 nullptr,
426 DCHECK(record != nullptr);
428 if (record == nullptr || record->GetType() != type) {
429 return nullptr;
480 FrameIdToShadowFrame* found = nullptr;
481 for (FrameIdToShadowFrame* record = head; record != nullptr; record = record->GetNext()) {
485 CHECK(found == nullptr) << "Multiple records for the frame " << frame_id;
498 if (record != nullptr) {
501 return nullptr;
504 // Must only be called when FindDebuggerShadowFrame(frame_id) returns non-nullptr.
508 CHECK(record != nullptr);
517 if (shadow_frame != nullptr) {
521 shadow_frame = ShadowFrame::CreateDeoptimizedFrame(num_vregs, nullptr, method, dex_pc);
528 shadow_frame->SetVRegReference(i, nullptr);
539 return (it != custom_tls_.end()) ? it->second.get() : nullptr;
543 // We will swap the old data (which might be nullptr) with this and then delete it outside of the
561 record != nullptr;
586 if (runtime == nullptr) {
588 return nullptr;
593 MutexLock mu(nullptr, *Locks::runtime_shutdown_lock_);
602 self->tlsPtr_.tmp_jni_env = nullptr;
610 CHECK(self->tlsPtr_.jpeer != nullptr);
613 self->tlsPtr_.jpeer = nullptr;
641 InvokeVirtualOrInterfaceWithJValues(soa, ref.get(), mid, nullptr);
646 return nullptr;
657 if (result != nullptr && !result->IsSuspended()) {
806 CHECK(java_peer != nullptr);
816 if (java_name != nullptr) {
861 if (child_jni_env_ext.get() != nullptr) {
878 // Note: we can't check for tmp_jni_env == nullptr, as that would require synchronization
892 child_thread->tlsPtr_.jpeer = nullptr;
894 child_thread = nullptr;
898 std::string msg(child_jni_env_ext.get() == nullptr ?
912 CHECK(Thread::Current() == nullptr);
944 if (jni_env_ext != nullptr) {
951 if (tlsPtr_.jni_env == nullptr) {
966 if (runtime == nullptr) {
968 ((thread_name != nullptr) ? thread_name : "(Unnamed)");
969 return nullptr;
974 MutexLock mu(nullptr, *Locks::runtime_shutdown_lock_);
977 ((thread_name != nullptr) ? thread_name : "(Unnamed)");
978 return nullptr;
986 return nullptr;
1000 return nullptr;
1004 if (thread_name != nullptr) {
1045 if (thread_name != nullptr) {
1078 if (thread_group == nullptr) {
1083 if (name != nullptr && thread_name.get() == nullptr) {
1091 if (peer.get() == nullptr) {
1116 if (peer_thread_name == nullptr) {
1139 if (peer_thread_name != nullptr) {
1151 if (thread_group == nullptr) {
1156 if (name != nullptr && thread_name.get() == nullptr) {
1158 return nullptr;
1164 if (peer.get() == nullptr) {
1166 return nullptr;
1341 << ",\"" << (tlsPtr_.name != nullptr ? *tlsPtr_.name : "null") << "\""
1353 if (tlsPtr_.opeer == nullptr) {
1354 return nullptr;
1357 return name == nullptr ? nullptr : name->AsString();
1425 if (kUseReadBarrier && delta > 0 && this != self && tlsPtr_.flip_function != nullptr) {
1432 if (delta > 0 && suspend_barrier != nullptr) {
1435 if (tlsPtr_.active_suspend_barriers[i] == nullptr) {
1491 tlsPtr_.active_suspend_barriers[i] = nullptr;
1499 if (pending_threads != nullptr) {
1508 futex(pending_threads->Address(), FUTEX_WAKE_PRIVATE, INT_MAX, nullptr, nullptr, 0);
1525 tlsPtr_.active_suspend_barriers[i] = nullptr;
1526 } else if (ptr != nullptr) {
1548 tlsPtr_.checkpoint_function = nullptr;
1554 CHECK(checkpoint != nullptr) << "Checkpoint flag set without pending checkpoint";
1580 if (tlsPtr_.checkpoint_function == nullptr) {
1697 if (!ModifySuspendCount(self, +1, nullptr, SuspendReason::kInternal)) {
1724 bool updated = ModifySuspendCount(self, -1, nullptr
1747 if (func == nullptr) {
1748 return nullptr;
1750 } while (!atomic_func->CompareAndSetWeakSequentiallyConsistent(func, nullptr));
1751 DCHECK(func != nullptr);
1756 CHECK(function != nullptr);
1807 if (thread != nullptr) {
1811 if (flip_func != nullptr) {
1818 if (gAborting == 0 && self != nullptr && thread != nullptr && thread->tlsPtr_.opeer != nullptr) {
1829 if (thread_group != nullptr) {
1834 group_name = (group_name_string != nullptr) ? group_name_string->ToModifiedUtf8() : "<null>";
1845 if (thread != nullptr) {
1863 if (thread != nullptr) {
1884 if (thread != nullptr) {
1928 if (thread != nullptr) {
1937 if (mutex != nullptr) {
1971 last_method(nullptr),
1989 if (dex_cache != nullptr) { // be tolerant of bad input
2014 os << "(" << (source_file != nullptr ? source_file : "unavailable")
2066 if (obj == nullptr) {
2119 ArtMethod* current_method = thread->GetCurrentMethod(nullptr);
2120 return current_method != nullptr && current_method->IsNative();
2132 if (flip_func != nullptr) {
2179 GetCurrentMethod(nullptr,
2219 MutexLock mu(nullptr, *Locks::thread_suspend_count_lock_);
2229 if (pthread_getspecific(pthread_key_self_) != nullptr) {
2230 LOG(FATAL) << "Newly-created pthread TLS slot is not nullptr";
2256 if (resume_cond_ != nullptr) {
2258 resume_cond_ = nullptr;
2266 soa.Env(), nullptr);
2268 if (thread_group == nullptr || kIsDebugBuild) {
2274 if (kIsDebugBuild && thread_group != nullptr) {
2286 wait_monitor_(nullptr),
2305 tlsPtr_.checkpoint_function = nullptr;
2307 tlsPtr_.active_suspend_barriers[i] = nullptr;
2309 tlsPtr_.flip_function = nullptr;
2310 tlsPtr_.thread_local_mark_stack = nullptr;
2330 return (tlsPtr_.jpeer == nullptr && tlsPtr_.opeer == nullptr) ||
2384 if (tlsPtr_.jni_env != nullptr) {
2392 if (tlsPtr_.jpeer != nullptr) {
2395 tlsPtr_.jpeer = nullptr;
2397 if (tlsPtr_.class_loader_override != nullptr) {
2399 tlsPtr_.class_loader_override = nullptr;
2403 if (tlsPtr_.opeer != nullptr) {
2409 if (runtime != nullptr) {
2427 if (lock != nullptr) {
2433 tlsPtr_.opeer = nullptr;
2446 CHECK(tlsPtr_.class_loader_override == nullptr);
2447 CHECK(tlsPtr_.jpeer == nullptr);
2448 CHECK(tlsPtr_.opeer == nullptr);
2449 bool initialized = (tlsPtr_.jni_env != nullptr); // Did Thread::Init run?
2452 tlsPtr_.jni_env = nullptr;
2457 CHECK(tlsPtr_.checkpoint_function == nullptr);
2459 CHECK(tlsPtr_.flip_function == nullptr);
2463 CHECK(tlsPtr_.deoptimization_context_stack == nullptr) << "Missed deoptimization";
2464 CHECK(tlsPtr_.frame_id_to_shadow_frame == nullptr) <<
2473 if (tlsPtr_.long_jump_context != nullptr) {
2481 if (tlsPtr_.single_step_control != nullptr) {
2518 if (ogroup != nullptr) {
2531 for (BaseHandleScope* cur = tlsPtr_.top_handle_scope; cur!= nullptr; cur = cur->GetLink()) {
2549 if (obj == nullptr) {
2550 return nullptr;
2569 tlsPtr_.jni_env->vm_->JniAbortF(nullptr, "use of invalid jobject %p", obj);
2571 result = nullptr;
2581 result = nullptr;
2585 if (UNLIKELY(!expect_null && result == nullptr)) {
2586 tlsPtr_.jni_env->vm_->JniAbortF(nullptr, "use of deleted %s %p",
2593 CHECK(obj != nullptr);
2635 if (wait_monitor_ != nullptr) {
2641 if (tlsPtr_.class_loader_override != nullptr) {
2653 ArtMethodDexPcPair* saved_frames = nullptr,
2656 : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
2705 : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
2723 if (trace == nullptr) {
2733 if (methods_and_pcs == nullptr) {
2740 CHECK(last_no_suspend_cause == nullptr) << last_no_suspend_cause;
2745 self_->EndAssertNoThreadSuspension(nullptr);
2749 if (trace_ == nullptr) {
2795 mirror::ObjectArray<mirror::Object>* trace_ = nullptr;
2819 return nullptr; // Allocation failed.
2838 CHECK(method != nullptr);
2861 auto class_name_object(hs.NewHandle<mirror::String>(nullptr));
2862 auto source_name_object(hs.NewHandle<mirror::String>(nullptr));
2872 CHECK(descriptor != nullptr);
2876 if (class_name_object == nullptr) {
2878 return nullptr;
2887 if (source_file != nullptr) {
2889 if (source_name_object == nullptr) {
2891 return nullptr;
2897 CHECK(method_name != nullptr);
2900 if (method_name_object == nullptr) {
2901 return nullptr;
2924 if (output_array != nullptr) {
2935 if (java_traces == nullptr) {
2936 return nullptr;
2941 if (stack_depth != nullptr) {
2957 if (obj == nullptr) {
2958 return nullptr;
2969 return nullptr;
2981 if (flip_func != nullptr) {
2992 wait_jobject_(soaa_in.Env(), nullptr),
2993 block_jobject_(soaa_in.Env(), nullptr),
3002 if (obj == nullptr) {
3059 return nullptr;
3070 if (h_aste_array_class == nullptr) {
3071 return nullptr;
3077 DCHECK(h_o_array_class != nullptr); // Class roots must be already initialized.
3087 return nullptr;
3092 DCHECK(stack_trace_element_field != nullptr);
3095 DCHECK(held_locks_field != nullptr);
3098 DCHECK(blocked_on_field != nullptr);
3103 if (array == nullptr) {
3105 return nullptr;
3110 MutableHandle<mirror::Object> handle(hs.NewHandle<mirror::Object>(nullptr));
3112 hs.NewHandle<mirror::ObjectArray<mirror::Object>>(nullptr));
3115 if (handle == nullptr) {
3117 return nullptr;
3129 if (handle2 == nullptr) {
3131 return nullptr;
3135 if (scoped_local == nullptr) {
3147 if (dumper.block_jobject_ != nullptr) {
3184 ArtMethod* method = self->GetCurrentMethod(nullptr);
3185 return method != nullptr
3187 : nullptr;
3202 if (UNLIKELY(exception_class == nullptr)) {
3218 if (exception == nullptr) {
3226 ScopedLocalRef<jstring> msg_string(GetJniEnv(), nullptr);
3227 if (msg != nullptr) {
3231 if (UNLIKELY(msg_string.get() == nullptr)) {
3235 if (cause.get() == nullptr) {
3241 if (cause.get() == nullptr) {
3250 CHECK(exception_init_method != nullptr) << "No <init>" << signature << " in "
3257 if (msg != nullptr) {
3260 if (cause.get() != nullptr) {
3267 if (trace.get() != nullptr) {
3275 if (msg != nullptr) {
3279 if (cause.get() != nullptr) {
3532 CHECK(exception != nullptr);
3564 if (cf == nullptr) {
3567 bool force_frame_pop = cf != nullptr && cf->GetForcePopFrame();
3568 bool force_retry_instr = cf != nullptr && cf->GetForceRetryInstruction();
3573 if (penultimate_frame == nullptr) {
3576 DCHECK(penultimate_frame != nullptr &&
3579 << (penultimate_frame == nullptr ? "true" : "false");
3602 (force_deopt ? nullptr : exception),
3632 if (result == nullptr) {
3635 tlsPtr_.long_jump_context = nullptr; // Avoid context being shared.
3647 ArtMethod* method = nullptr;
3661 /* context= */ nullptr,
3665 if (dex_pc_out != nullptr) {
3672 return object != nullptr && object->GetLockOwnerThreadId() == GetThreadId();
3695 if (shadow_frame != nullptr) {
3706 DCHECK(m != nullptr);
3712 if (ref != nullptr) {
3733 if (klass != nullptr) {
3738 if (space != nullptr && space->IsImageSpace()) {
3770 DCHECK(cur_quick_frame != nullptr);
3795 if (ref != nullptr) {
3809 if (kIsDebugBuild && ref_addr == nullptr) {
3817 if (*ref_addr != nullptr) {
3830 if (ref != nullptr) {
3962 if (tlsPtr_.exception != nullptr && tlsPtr_.exception != GetDeoptimizationException()) {
3966 if (tlsPtr_.async_exception != nullptr) {
3974 if (tlsPtr_.debug_invoke_req != nullptr) {
3978 if (tlsPtr_.stacked_shadow_frame_record != nullptr) {
3980 ReferenceMapVisitor<RootCallbackVisitor, kPrecise> mapper(this, nullptr, visitor_to_callback);
3982 record != nullptr;
3985 shadow_frame != nullptr;
3992 record != nullptr;
4001 if (tlsPtr_.frame_id_to_shadow_frame != nullptr) {
4003 ReferenceMapVisitor<RootCallbackVisitor, kPrecise> mapper(this, nullptr, visitor_to_callback);
4005 record != nullptr;
4010 for (auto* verifier = tlsPtr_.method_verifier; verifier != nullptr; verifier = verifier->link_) {
4082 bool has_tlab = tlsPtr_.thread_local_pos != nullptr;
4084 DCHECK(tlsPtr_.thread_local_start != nullptr && tlsPtr_.thread_local_end != nullptr);
4086 DCHECK(tlsPtr_.thread_local_start == nullptr && tlsPtr_.thread_local_end == nullptr);
4118 CHECK(GetSingleStepControl() == nullptr) << "Single step already active in thread " << *this;
4119 CHECK(ssc != nullptr);
4125 CHECK(GetSingleStepControl() != nullptr) << "Single step not active in thread " << *this;
4127 tlsPtr_.single_step_control = nullptr;
4133 CHECK(GetInvokeReq() == nullptr) << "Debug invoke req already active in thread " << *this;
4135 CHECK(req != nullptr);
4140 CHECK(GetInvokeReq() != nullptr) << "Debug invoke req not active in thread " << *this;
4143 tlsPtr_.debug_invoke_req = nullptr;
4160 count += mu != nullptr ? 1 : 0;
4174 SetTopOfStack(nullptr);
4179 if (pending_exception != nullptr) {
4190 CHECK(new_exception != nullptr);
4204 if (tlsPtr_.async_exception != nullptr) {
4205 if (tlsPtr_.exception != nullptr) {
4211 tlsPtr_.async_exception = nullptr;
4219 nullptr);
4229 DCHECK(tlsPtr_.jpeer == nullptr);
4283 if (GetPeer() == nullptr) {