summaryrefslogtreecommitdiff
path: root/openjdkjvmti/ti_thread.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-06-12 09:30:37 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-06-14 10:14:50 +0000
commit2b4eb676348f122ab0a21e19d7a3c57bd9898c6c (patch)
tree281ceaa54365c8c38ca94ea484c831aeb1951bf8 /openjdkjvmti/ti_thread.cc
parent9132d9056cc1d4eb342d1a2b0315fc1f054ca2f8 (diff)
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
Diffstat (limited to 'openjdkjvmti/ti_thread.cc')
-rw-r--r--openjdkjvmti/ti_thread.cc7
1 files changed, 3 insertions, 4 deletions
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 <android-base/logging.h>
-#include <android-base/strings.h>
#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();
}