Commit 7e95087c authored by ggaren's avatar ggaren
Browse files

LayoutTests:

        Reviewed by Beth.
        
        Now that we garbage collect after reinitalizing the global object, not
        before, we have more free memory, so a custom property that used to
        get collected during the initialization phase of this test now avoids
        getting collected until the collection phase.

        * fast/dom/gc-9-expected.txt:
        * fast/dom/gc-9.html:

WebCore:

        Reviewed by Beth.

        * bindings/js/kjs_window.cpp:
        (KJS::Window::clear): Garbage collect after reinitalizing the global
        object, not before, since the reinitialization tends to create garbage.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15285 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 08ac1c1b
2006-07-09 Geoffrey Garen <ggaren@apple.com>
Reviewed by Beth.
Now that we garbage collect after reinitalizing the global object, not
before, we have more free memory, so a custom property that used to
get collected during the initialization phase of this test now avoids
getting collected until the collection phase.
* fast/dom/gc-9-expected.txt:
* fast/dom/gc-9.html:
2006-07-09 David Kilzer <ddkilzer@kilzer.net>
 
Reviewed by Darin.
......@@ -35,7 +35,7 @@ PASS: document.body.style.getPropertyCSSValue('color').myCustomProperty should b
PASS: document.styleSheets.myCustomProperty should be 1 and is.
PASS: document.styleSheets[0].myCustomProperty should be 1 and is.
PASS: document.styleSheets[0].cssRules.myCustomProperty should be undefined and is.
PASS: document.styleSheets[0].cssRules[0].myCustomProperty should be undefined and is.
PASS: document.styleSheets[0].cssRules[0].myCustomProperty should be 1 and is.
PASS: new XPathEvaluator().myCustomProperty should be undefined and is.
PASS: new XPathEvaluator().evaluate('/', document, null, 0, null).myCustomProperty should be undefined and is.
PASS: document.createNSResolver(document).myCustomProperty should be undefined and is.
......
......@@ -178,7 +178,7 @@ var expectedResultsBeforeGC = [
1,
1,
undefined,
undefined,
1,
undefined,
undefined,
undefined,
......
2006-07-09 Geoffrey Garen <ggaren@apple.com>
Reviewed by Beth.
* bindings/js/kjs_window.cpp:
(KJS::Window::clear): Garbage collect after reinitalizing the global
object, not before, since the reinitialization tends to create garbage.
2006-07-09 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
......
......@@ -1344,11 +1344,11 @@ void Window::clear()
clearProperties();
setPrototype(JSDOMWindowProto::self()); // clear the prototype
// there's likely to be lots of garbage now
Collector::collect();
// Now recreate a working global object for the next URL that will use us
interpreter()->initGlobalObject();
// there's likely to be lots of garbage now
Collector::collect();
}
void Window::setCurrentEvent(Event *evt)
......
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