[webkit-dev] Strange relation between script loading and call stack size

Fabian Jakobs fabian.jakobs at 1und1.de
Wed Jul 9 07:16:42 PDT 2008


Hi,

I have a very strange problem with Safari 3.1.2 and WebKit nightly. We
use a loader script, which inserts script tags dynamically into the
header. Now I observe the strange behavior that doing so seems to limit
the available call stack size. We load many scripts (> 300) in a loop
this way and run into an call stack size exceeded error.

I have reduced the problem to the attached HTML, where you can see the
effect. Still I have problems interpreting the results. Safari 3.1.2
shows me a decrease of the available call stack size, while it does not
really work in the Nightly. What is happening inside of Safari there?

Once webkit.org is up again I'll file it as a bug as well.


Best Fabian

-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss,
Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080709/0db07d3b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.js
Type: application/javascript
Size: 8067 bytes
Desc: not available
Url : http://lists.webkit.org/pipermail/webkit-dev/attachments/20080709/0db07d3b/attachment.bin 


More information about the webkit-dev mailing list