Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6)

Unified Diff: src/org/python/core/PyTableCode.java

Issue 2810: SystemRestart exception to restart the interpreter (Closed) SVN Base: https://jython.svn.sourceforge.net/svnroot/jython/branches/asm
Patch Set: Created 1 year, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: src/org/python/core/PyTableCode.java
===================================================================
--- src/org/python/core/PyTableCode.java (revisión: 5073)
+++ src/org/python/core/PyTableCode.java (copia de trabajo)
@@ -226,6 +226,12 @@
ts.exception = previous_exception;
ts.frame = ts.frame.f_back;
+
+ // Check for interruption, which is used for restarting the interpreter
+ // on Jython
+ if (Thread.currentThread().isInterrupted()) {
+ throw Py.SystemRestart();
+ }
return ret;
}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483