Mercurial > pymonkey
comparison context.c @ 38:6cd870a2b81e
If the JS engine supports GC zeal setting, we enable it automatically to help find any memory management bugs.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 02 Jul 2009 22:56:59 -0700 |
parents | d4efcbb06964 |
children | 8a7abd0bb48d |
comparison
equal
deleted
inserted
replaced
37:d4efcbb06964 | 38:6cd870a2b81e |
---|---|
241 context->runtime = runtime; | 241 context->runtime = runtime; |
242 Py_INCREF(runtime); | 242 Py_INCREF(runtime); |
243 | 243 |
244 context->cx = cx; | 244 context->cx = cx; |
245 | 245 |
246 #ifdef JS_GC_ZEAL | |
247 // TODO: Consider exposing JS_SetGCZeal() to Python instead of | |
248 // hard-coding it here. | |
249 JS_SetGCZeal(cx, 2); | |
250 #endif | |
251 | |
246 return context; | 252 return context; |
247 } | 253 } |