Commit e470558e authored by mjs@apple.com's avatar mjs@apple.com

2008-10-16 Maciej Stachowiak <mjs@apple.com>

        Reviewed by Oliver Hunt.

        - fix for REGRESSION: r37631 causing crashes on buildbot
        https://bugs.webkit.org/show_bug.cgi?id=21682
        
        * kjs/collector.cpp:
        (JSC::Heap::collect): Avoid crashing when a GC occurs while no global objects are live.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b420579a
2008-10-16 Maciej Stachowiak <mjs@apple.com>
Reviewed by Oliver Hunt.
- fix for REGRESSION: r37631 causing crashes on buildbot
https://bugs.webkit.org/show_bug.cgi?id=21682
* kjs/collector.cpp:
(JSC::Heap::collect): Avoid crashing when a GC occurs while no global objects are live.
2008-10-16 Sam Weinig <sam@webkit.org>
Reviewed by Maciej Stachowiak.
......
......@@ -970,10 +970,12 @@ bool Heap::collect()
m_globalData->smallStrings.mark();
JSGlobalObject* globalObject = m_globalData->head;
do {
globalObject->markCrossHeapDependentObjects();
globalObject = globalObject->next();
} while (globalObject != m_globalData->head);
if (globalObject) {
do {
globalObject->markCrossHeapDependentObjects();
globalObject = globalObject->next();
} while (globalObject != m_globalData->head);
}
JAVASCRIPTCORE_GC_MARKED();
......
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