| 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()
|
|
|