Commit 7576c03d authored by cwzwarich@webkit.org's avatar cwzwarich@webkit.org

2008-06-25 Cameron Zwarich <cwzwarich@uwaterloo.ca>

        Reviewed by Alexey Proskuryakov.

        Attempt to fix Windows debug build. The compiler gives a warning when
        Structured Exception Handling and destructors are used in the same
        function. Using manual locking and unlocking instead of constructors
        and destructors should fix the warning.

        * kjs/Shell.cpp:
        (main):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34793 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a9535cf0
2008-06-25 Cameron Zwarich <cwzwarich@uwaterloo.ca>
Reviewed by Alexey Proskuryakov.
Attempt to fix Windows debug build. The compiler gives a warning when
Structured Exception Handling and destructors are used in the same
function. Using manual locking and unlocking instead of constructors
and destructors should fix the warning.
* kjs/Shell.cpp:
(main):
2008-06-25 Alexey Proskuryakov <ap@webkit.org>
Forgot to address a review comment about better names for tracked objects, doing it now.
......
......@@ -298,8 +298,9 @@ int main(int argc, char** argv)
TRY
res = jscmain(argc, argv);
#ifndef NDEBUG
JSLock lock;
JSLock::lock();
JSGlobalData::threadInstance().heap->collect();
JSLock::unlock();
#endif
EXCEPT(res = 3)
return res;
......
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