Commit 760a8d1a authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2011-01-20 Siddharth Mathur <siddharth.mathur@nokia.com>

        Reviewed by Geoffrey Garen.

        [Symbian] Fix StackBounds::initialize()
        https://bugs.webkit.org/show_bug.cgi?id=52842

        * wtf/StackBounds.cpp:
        (WTF::StackBounds::initialize): Use TThreadStackInfo.iLimit for stack limit

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f0000a8e
2011-01-20 Siddharth Mathur <siddharth.mathur@nokia.com>
Reviewed by Geoffrey Garen.
[Symbian] Fix StackBounds::initialize()
https://bugs.webkit.org/show_bug.cgi?id=52842
* wtf/StackBounds.cpp:
(WTF::StackBounds::initialize): Use TThreadStackInfo.iLimit for stack limit
2011-01-20 Michael Saboff <msaboff@apple.com>
 
Reviewed by Oliver Hunt.
......
......@@ -60,12 +60,12 @@ namespace WTF {
// Bug 26276 - Need a mechanism to determine stack extent
//
// These platforms should now be working correctly:
// DARWIN, QNX, UNIX
// DARWIN, QNX, UNIX, SYMBIAN
// These platforms are not:
// WINDOWS, SOLARIS, OPENBSD, SYMBIAN, HAIKU, WINCE
// WINDOWS, SOLARIS, OPENBSD, HAIKU, WINCE
//
// FIXME: remove this! - this code unsafely guesses at stack sizes!
#if OS(WINDOWS) || OS(SOLARIS) || OS(OPENBSD) || OS(SYMBIAN) || OS(HAIKU)
#if OS(WINDOWS) || OS(SOLARIS) || OS(OPENBSD) || OS(HAIKU)
// Based on the current limit used by the JSC parser, guess the stack size.
static const ptrdiff_t estimatedStackSize = 128 * sizeof(void*) * 1024;
// This method assumes the stack is growing downwards.
......@@ -139,7 +139,7 @@ void StackBounds::initialize()
RThread thread;
thread.StackInfo(info);
m_origin = (void*)info.iBase;
m_bound = estimateStackBound(m_origin);
m_bound = (void*)info.iLimit;
}
#elif OS(HAIKU)
......
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