Commit 33cf2370 authored by Aaryaman Sagar's avatar Aaryaman Sagar Committed by Facebook Github Bot

Remove android debug code

Summary: Title, remove debugging code that does not seem to be needed anymore

Reviewed By: yfeldblum, davidtgoldblatt

Differential Revision: D14267545

fbshipit-source-id: df57e4b85d850e344b12ce1768a1e1a56ae72bce
parent b7e9f46e
......@@ -500,12 +500,6 @@ class NotificationQueue {
return draining_;
}
#ifdef __ANDROID__
// TODO 10860938 Remove after figuring out crash
mutable std::atomic<int> eventBytes_{0};
mutable std::atomic<int> maxEventBytes_{0};
#endif
void ensureSignalLocked() const {
// semantics: empty fd == empty queue <=> !signal_
if (signal_) {
......@@ -528,21 +522,9 @@ class NotificationQueue {
}
} while (bytes_written == -1 && errno == EINTR);
#ifdef __ANDROID__
if (bytes_written > 0) {
eventBytes_ += bytes_written;
maxEventBytes_ = std::max((int)maxEventBytes_, (int)eventBytes_);
}
#endif
if (bytes_written == ssize_t(bytes_expected)) {
signal_ = true;
} else {
#ifdef __ANDROID__
LOG(ERROR) << "NotificationQueue Write Error=" << errno
<< " bytesInPipe=" << eventBytes_
<< " maxInPipe=" << maxEventBytes_ << " queue=" << size();
#endif
folly::throwSystemError(
"failed to signal NotificationQueue after "
"write",
......@@ -575,12 +557,6 @@ class NotificationQueue {
<< signal_ << " bytes_read=" << bytes_read;
signal_ = false;
#ifdef __ANDROID__
if (bytes_read > 0) {
eventBytes_ -= bytes_read;
}
#endif
}
void ensureSignal() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment