Changeset [6d5e357f9cd4ae3cfaaf25aafbf6c121cf519ac2] by Paul J. Davis

June 26th, 2009 @ 07:45 PM

Fix segfaults when large numbers of contexts.

Turns out that I had an error in my logic about how to reference count the python context object. I removed references to it from Python objects that are wrapped in the JavaScript VM. I'm more than 50% certain that this is correct as when the Python context dies, it'll destroy the JSContext* and along with it all references to Python objects that need refernces to the Context.

[#21 state:resolved] http://github.com/davisp/python-...

Committed by Paul J. Davis

  • M THANKS
  • M spidermonkey/context.c
  • M spidermonkey/pyiter.c
  • M spidermonkey/pyobject.c
  • M spidermonkey/runtime.c
  • M tests/test-context.py
  • M tests/test-turnover.py
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Python/JavaScript bridge module, making use of Mozilla's spidermonkey JavaScript implementation. Allows implementation of JavaScript classes, objects and functions in Python, and evaluation and calling of JavaScript scripts and functions respectively. Borrows heavily from Claes Jacobssen's Javascript Perl module, in turn based on Mozilla's 'PerlConnect' Perl binding.