Subj : GC questions / debugging To : netscape.public.mozilla.jseng From : zakalawe@mac.com (James Turner) Date : Thu Dec 11 2003 09:10 am A couple of hopefully quick questions about GC (in a threaded program, if that's relevant) - are functions GC things? I'm storing lots of JSFunction pointers for lookup at a later time (potentially much later), so at the moment I'm JS_AddRooting them, but I don't know if this is pointless or not. Note that in practice nearly all these functions are anonymous. - Are there any general tips on debugging crashes inside the GC? I've been slowly going through my program fixing various things to be rooted, adding BeginRequest/EndRequest sections around calls into SpiderMonkey, and so on. I've fixed most of the issues, but not all. What I'm left with is infrequent segfaults inside the GC's mark phase. (I'm not bothering to post a backtrace becuase I assume the segfault is just a symptom of some prior bug on my part) If there's anything I can set (compile flags, callbacks) or tools I could run (I've used valgrind under linux, but it doesn't think anything is wrong), I'd be grateful. H&H James .