# HG changeset patch # User Atul Varma # Date 1246600619 25200 # Node ID 6cd870a2b81e1d9bdeb5be77dd773882cac6373c # Parent d4efcbb06964eb077819932be836c7a3e31403c6 If the JS engine supports GC zeal setting, we enable it automatically to help find any memory management bugs. diff -r d4efcbb06964 -r 6cd870a2b81e context.c --- a/context.c Thu Jul 02 22:42:31 2009 -0700 +++ b/context.c Thu Jul 02 22:56:59 2009 -0700 @@ -243,5 +243,11 @@ context->cx = cx; +#ifdef JS_GC_ZEAL + // TODO: Consider exposing JS_SetGCZeal() to Python instead of + // hard-coding it here. + JS_SetGCZeal(cx, 2); +#endif + return context; }