Author zyasoft
Recipients rec, zyasoft
Date 2014-06-23.04:40:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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, unless there's some sort of cleanup. See for example this highly relevant discussion on the Tomcat wiki:
Date User Action Args
2014-06-23 04:40:25zyasoftsetmessageid: <>
2014-06-23 04:40:25zyasoftsetrecipients: + zyasoft, rec
2014-06-23 04:40:25zyasoftlinkissue2142 messages
2014-06-23 04:40:25zyasoftcreate