Revert "ART: Fix mac build"
The underlying CL was reverted.
This reverts commit 564f58305961986591ccb2fff04b9ccdd430a6db.
Change-Id: Ic9fe93a95c4357d0045a430713be7da517f626b5
diff --git a/runtime/thread.cc b/runtime/thread.cc
index b2fbf74..4ce8c96 100644
--- a/runtime/thread.cc
+++ b/runtime/thread.cc
@@ -505,7 +505,9 @@
}
// TODO: move this into the Linux GetThreadStack implementation.
-#if !defined(__APPLE__)
+#if defined(__APPLE__)
+ bool is_main_thread = false;
+#else
// If we're the main thread, check whether we were run with an unlimited stack. In that case,
// glibc will have reported a 2GB stack for our 32-bit process, and our stack overflow detection
// will be broken because we'll die long before we get close to 2GB.