Message8793

Author zyasoft
Recipients rec, zyasoft
Date 2014-06-23.04:40:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403498425.91.0.207821964523.issue2142@psf.upfronthosting.co.za>
In-reply-to
Content
My concerns are:

1. We would need to do for all Python threads upon entry into Python context (possibly calling back from Java). The natural point to do this in this method in org.python.core.Py:

public static final ThreadState getThreadState(PySystemState newSystemState)

Because of the way ThreadState is passed through calls, this will not be called all the time, but it's certainly a hot path.

2. Such a hard reference from a thread to a class loader will prevent the class loader from being GCed (see this relevant email thread http://sourceforge.net/p/jython/mailman/message/32486365/), unless there's some sort of cleanup. See for example this highly relevant discussion on the Tomcat wiki: http://wiki.apache.org/tomcat/MemoryLeakProtection#cclThreadSpawnedByWebApp
History
Date User Action Args
2014-06-23 04:40:25zyasoftsetmessageid: <1403498425.91.0.207821964523.issue2142@psf.upfronthosting.co.za>
2014-06-23 04:40:25zyasoftsetrecipients: + zyasoft, rec
2014-06-23 04:40:25zyasoftlinkissue2142 messages
2014-06-23 04:40:25zyasoftcreate