[Webkit-unassigned] [Bug 26276] Need a mechanism to determine stack extent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 20 06:28:37 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=26276





--- Comment #16 from Xan Lopez <xan.lopez at gmail.com>  2010-12-20 06:28:36 PST ---
(In reply to comment #11)
> A better experiment might be to write a tool to dump the processes vm map on exit, run some test cases, and look at how much of the stack has been mapped in resident (we could do this on OS X using vmmap) - this would be harder, but would give us a better indication of common stack usage in JSC.  Maybe there is an easier way to produce similar information.

It seems reasonably easy to dump the process vm map on exit and check how much of the stack has been mapped in resident, although not in a portable way. I can hack jsc or whatever to add an option to do this in Linux, if you want, and then you can fill in the OSX bits.

> 
> What do you think? - do you think you can come up with some form of test to pick a sensible amount of stack space to require to permit reentry?  If not, I suggest we at least hard code a constant to demand a more significant chunk of stack space be available to permit reentry, say, passing 16k/32k to recursionCheck().

My only question is what set of programs would we run to figure out what's a reasonable limit.

> 
> cheers,
> G.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list