Bug 4006 - testkjs doesn't implement gc()
Summary: testkjs doesn't implement gc()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 412
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 13:28 PDT by Geoffrey Garen
Modified: 2005-07-14 15:47 PDT (History)
0 users

See Also:


Attachments
Patch (1.54 KB, patch)
2005-07-14 13:29 PDT, Geoffrey Garen
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey Garen 2005-07-14 13:28:25 PDT
Mozilla test suite uses gc() to force garbage collection.

Test failures:
        ecma_3/Function/regress-104584.js
Comment 1 Geoffrey Garen 2005-07-14 13:29:04 PDT
Created attachment 2966 [details]
Patch
Comment 2 Maciej Stachowiak 2005-07-14 14:44:11 PDT
+    while (Collector::collect())
+      ;

A single collection should be sufficient, there's no way collecting more than once could make a difference 
(barring a memory bug).
Comment 3 Maciej Stachowiak 2005-07-14 14:44:53 PDT
Comment on attachment 2966 [details]
Patch

r=me assuming you address my comment, though.