From 2b4eb676348f122ab0a21e19d7a3c57bd9898c6c Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 12 Jun 2024 09:30:37 +0000 Subject: Use C++20 `string{,_view}::{starts,ends}_with()`, part 2. Replace uses of `android::base::{Starts,Ends}With()`. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I80a0ca93f433464270989d248dd999e9366a1c17 --- openjdkjvmti/ti_thread.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'openjdkjvmti/ti_thread.cc') diff --git a/openjdkjvmti/ti_thread.cc b/openjdkjvmti/ti_thread.cc index 6b3cf30aee..9c71d4e3cc 100644 --- a/openjdkjvmti/ti_thread.cc +++ b/openjdkjvmti/ti_thread.cc @@ -32,7 +32,6 @@ #include "ti_thread.h" #include -#include #include "art_field-inl.h" #include "art_jvmti.h" @@ -130,9 +129,9 @@ struct ThreadCallback : public art::ThreadLifecycleCallback { self->GetThreadName(name); if (name != "JDWP" && name != "Signal Catcher" && name != "perfetto_hprof_listener" && name != art::metrics::MetricsReporter::kBackgroundThreadName && - !android::base::StartsWith(name, "Jit thread pool") && - !android::base::StartsWith(name, "Heap thread pool worker thread") && - !android::base::StartsWith(name, "Runtime worker thread")) { + !name.starts_with("Jit thread pool") && + !name.starts_with("Heap thread pool worker thread") && + !name.starts_with("Runtime worker thread")) { LOG(FATAL) << "Unexpected thread before start: " << name << " id: " << self->GetThreadId(); } -- cgit v1.2.3-59-g8ed1b