Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit c55fab4

Browse files
jmgaoGerrit Code Review
authored andcommitted
Merge "Revert "adb: make benchmarks build on the host.""
2 parents 7d3f006 + 1289e1e commit c55fab4

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

adb/Android.bp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ cc_test_host {
213213
cc_benchmark {
214214
name: "adb_benchmark",
215215
defaults: ["adb_defaults"],
216-
host_supported: true,
217216

218217
srcs: ["transport_benchmark.cpp"],
219218
target: {
@@ -227,9 +226,6 @@ cc_benchmark {
227226
"libadb_host",
228227
],
229228
},
230-
darwin: {
231-
enabled: false,
232-
}
233229
},
234230

235231
static_libs: [

adb/transport_benchmark.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,8 @@ ADB_CONNECTION_BENCHMARK(BM_Connection_Echo, ThreadPolicy::SameThread);
183183
ADB_CONNECTION_BENCHMARK(BM_Connection_Echo, ThreadPolicy::MainThread);
184184

185185
int main(int argc, char** argv) {
186-
#if defined(__BIONIC__)
187186
// Set M_DECAY_TIME so that our allocations aren't immediately purged on free.
188187
mallopt(M_DECAY_TIME, 1);
189-
#endif
190188

191189
android::base::SetMinimumLogSeverity(android::base::WARNING);
192190
adb_trace_init(argv);

0 commit comments

Comments
 (0)