Changeset 76297 in webkit


Ignore:
Timestamp:
Jan 20, 2011 3:49:22 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

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
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r76275 r76297  
     12011-01-20  Siddharth Mathur  <siddharth.mathur@nokia.com>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        [Symbian] Fix StackBounds::initialize()
     6        https://bugs.webkit.org/show_bug.cgi?id=52842
     7
     8        * wtf/StackBounds.cpp:
     9        (WTF::StackBounds::initialize): Use TThreadStackInfo.iLimit for stack limit
     10
    1112011-01-20  Michael Saboff  <msaboff@apple.com>
    212
  • trunk/Source/JavaScriptCore/wtf/StackBounds.cpp

    r75405 r76297  
    6161//
    6262// These platforms should now be working correctly:
    63 //     DARWIN, QNX, UNIX
     63//     DARWIN, QNX, UNIX, SYMBIAN
    6464// These platforms are not:
    65 //     WINDOWS, SOLARIS, OPENBSD, SYMBIAN, HAIKU, WINCE
     65//     WINDOWS, SOLARIS, OPENBSD, HAIKU, WINCE
    6666//
    6767// FIXME: remove this! - this code unsafely guesses at stack sizes!
    68 #if OS(WINDOWS) || OS(SOLARIS) || OS(OPENBSD) || OS(SYMBIAN) || OS(HAIKU)
     68#if OS(WINDOWS) || OS(SOLARIS) || OS(OPENBSD) || OS(HAIKU)
    6969// Based on the current limit used by the JSC parser, guess the stack size.
    7070static const ptrdiff_t estimatedStackSize = 128 * sizeof(void*) * 1024;
     
    140140    thread.StackInfo(info);
    141141    m_origin = (void*)info.iBase;
    142     m_bound = estimateStackBound(m_origin);
     142    m_bound = (void*)info.iLimit;
    143143}
    144144
Note: See TracChangeset for help on using the changeset viewer.