Hi

Have been trying to research PyLucene under mod_python and the current
threading problem. Found the following bug report:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212 - JNI/CNI
AttachCurrentThread does not register thread with garbage collector
which I presume is the underlying issue.
There's a patch in that issue which apparently adds the necessary
changes to be able to attach the GC to a native thread after creation.
Would this be the right approach to enabling PyLucene to be able to work
in standard Python threads?
I presume we'd have to remember whether the current thread has been
attached or not, and attach it if neccessary

Regards
David

PS also had a crazy alternative idea - hacking the underlying gcj Java
object implementation so that each Java object is actually a Python
object too, and using Python reference counting and garbage collection
from within gcj :-)
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to