Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: Source/wtf/StackBounds.cpp

Issue 14482004: Remove OS(QNX) support. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/Platform.h ('k') | Source/wtf/ThreadingPthreads.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/StackBounds.cpp
diff --git a/Source/wtf/StackBounds.cpp b/Source/wtf/StackBounds.cpp
index 806ea2c78642e393fa857d069ec990083c43e949..9c40ba1950c5170970df7c2fbeeaee65d4eecb96 100644
--- a/Source/wtf/StackBounds.cpp
+++ b/Source/wtf/StackBounds.cpp
@@ -35,15 +35,6 @@
#include <thread.h>
-#elif OS(QNX)
-
-#include <errno.h>
-#include <fcntl.h>
-#include <pthread.h>
-#include <stdio.h>
-#include <string.h>
-#include <sys/procfs.h>
-
#elif OS(UNIX)
#include <pthread.h>
@@ -58,7 +49,7 @@ namespace WTF {
// Bug 26276 - Need a mechanism to determine stack extent
//
// These platforms should now be working correctly:
-// DARWIN, QNX, UNIX
+// DARWIN, UNIX
// These platforms are not:
// WINDOWS, SOLARIS, OPENBSD
//
@@ -82,31 +73,6 @@ void StackBounds::initialize()
m_bound = static_cast<char*>(m_origin) - pthread_get_stacksize_np(thread);
}
-#elif OS(QNX)
-
-void StackBounds::initialize()
-{
- void* stackBase = 0;
- size_t stackSize = 0;
-
- struct _debug_thread_info threadInfo;
- memset(&threadInfo, 0, sizeof(threadInfo));
- threadInfo.tid = pthread_self();
- int fd = open("/proc/self", O_RDONLY);
- if (fd == -1) {
- LOG_ERROR("Unable to open /proc/self (errno: %d)", errno);
- CRASH();
- }
- devctl(fd, DCMD_PROC_TIDSTATUS, &threadInfo, sizeof(threadInfo), 0);
- close(fd);
- stackBase = reinterpret_cast<void*>(threadInfo.stkbase);
- stackSize = threadInfo.stksize;
- ASSERT(stackBase);
-
- m_bound = static_cast<char*>(stackBase) + 0x1000; // 4kb guard page
- m_origin = static_cast<char*>(stackBase) + stackSize;
-}
-
#elif OS(SOLARIS)
void StackBounds::initialize()
« no previous file with comments | « Source/wtf/Platform.h ('k') | Source/wtf/ThreadingPthreads.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698