Subj : Re: JS_ResumeRequest puzzle To : netscape.public.mozilla.jseng From : Bob Kline Date : Wed Mar 17 2004 01:56 pm Brendan Eich wrote: > JS_ResumeRequest takes a second saveDepth parameter, of type > jsrefcount, that you declare locally and set beforehand to the return > value of JS_SuspendRequest. How about the other question? Is it OK to replace JS_SuspendRequest with JS_EndRequest and JS_ResumeRequest with JS_BeginRequest? Are the two approaches functionally equivalent? I came to the conclusion that they might be, based on the description of the purpose of these four calls as distinguishing blocks of code in which GC (and possibly other processing using common data) could and could not run. This conclusion seemed to be reinforced by the documentation for the four Request calls. Is this interpretation correct? Or is the request model more subtle than that? Bob .