Revert "gcstress: Limit the number of unwinds."
This reverts commit 52c7e98efe104bfe77b07f7c2c8c778996db02f4.
Reason for revert: Investigating timeout issues.
Bug: 142039427
Change-Id: I6e158e1db94eca3de4603aab9eff51824291cb87
diff --git a/runtime/backtrace_helper.cc b/runtime/backtrace_helper.cc
index 08d67cd..2d39270 100644
--- a/runtime/backtrace_helper.cc
+++ b/runtime/backtrace_helper.cc
@@ -81,19 +81,11 @@
};
void BacktraceCollector::Collect() {
- // HACK(b/142039427): Limit the number of unwinds while we diagnose timeout issues.
- static uint32_t s_count = 0;
- if (s_count > 1000) {
- return;
- }
- s_count++;
-
if (!CollectImpl()) {
// Reparse process mmaps to detect newly loaded libraries and retry.
UnwindHelper::Get(Thread::Current(), max_depth_)->Reparse();
if (!CollectImpl()) {
// Failed to unwind stack. Ignore for now.
- s_count = std::numeric_limits<uint32_t>::max(); // Prevent future unwinds.
}
}
}