[pypy-svn] r16259 - pypy/dist/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Tue Aug 23 13:43:14 CEST 2005


Author: arigo
Date: Tue Aug 23 13:43:13 2005
New Revision: 16259

Modified:
   pypy/dist/pypy/interpreter/executioncontext.py
Log:
(rxe, arigo) comments.


Modified: pypy/dist/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/dist/pypy/interpreter/executioncontext.py	(original)
+++ pypy/dist/pypy/interpreter/executioncontext.py	Tue Aug 23 13:43:13 2005
@@ -57,7 +57,13 @@
 
     def bytecode_trace(self, frame):
         "Trace function called before each bytecode."
+
+        # First, call yield_thread() before each bytecode ---
+        # XXX this should be called only every N bytecodes,
+        #     as selected by sys.setcheckinterval()
         self.space.threadlocals.yield_thread()
+
+        # Tracing logic
         if self.is_tracing or frame.w_f_trace is None:
             return
         code = getattr(frame, 'pycode')



More information about the Pypy-commit mailing list