Message10932

Author jeff.allen
Recipients jeff.allen, stefan.richthofer
Date 2016-09-04.07:31:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472974318.88.0.105047050232.issue2519@psf.upfronthosting.co.za>
In-reply-to
Content
test.test_gc_jy used not to run under the regression test because it had no test_main() function. Now that is corrected, it reliably hangs the regression test in GCTests_Jy_Monitoring (either test).

I've skipped this test case for now so the test runs at the console, not under regrtest. (See https://hg.python.org/jython/file/tip/Lib/test/test_gc_jy.py#l785)

When hanging, the main thread dump (JVisualVM) looks like this:

"MainThread" prio=6 tid=0x0000000002513000 nid=0x133c in Object.wait() [0x000000000250b000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	- waiting on <0x00000000e0b18578> (a java.lang.Class for org.python.modules.gc$GCSentinel)
	at java.lang.Object.wait(Object.java:503)
	at org.python.modules.gc.waitForFinalizers(gc.java:2474)
	- locked <0x00000000e0b18578> (a java.lang.Class for org.python.modules.gc$GCSentinel)
	at org.python.modules.gc.syncCollect(gc.java:2151)
	at org.python.modules.gc.collect_intern(gc.java:1953)
	at org.python.modules.gc.collect(gc.java:1882)
	at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
	at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
	at org.python.core.PyObject.__call__(PyObject.java:464)
	at org.python.core.PyObject.__call__(PyObject.java:468)
	at test.test_gc_jy$py.test_monitor_status_after_delayed_finalization$122(~jython-trunk\dist\Lib\test\test_gc_jy.py:859)
	at test.test_gc_jy$py.call_function(~jython-trunk\dist\Lib\test\test_gc_jy.py)
...

   Locked ownable synchronizers:
	- None
History
Date User Action Args
2016-09-04 07:31:58jeff.allensetrecipients: + jeff.allen, stefan.richthofer
2016-09-04 07:31:58jeff.allensetmessageid: <1472974318.88.0.105047050232.issue2519@psf.upfronthosting.co.za>
2016-09-04 07:31:58jeff.allenlinkissue2519 messages
2016-09-04 07:31:57jeff.allencreate