~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Python/pystate.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
                                "PyThreadState_Delete: invalid tstate");
254
254
                if (*p == tstate)
255
255
                        break;
 
256
                /* Sanity check.  These states should never happen but if
 
257
                 * they do we must abort.  Otherwise we'll end up spinning in
 
258
                 * in a tight loop with the lock held.  A similar check is done
 
259
                 * in thread.c find_key().  */
256
260
                if (*p == prev_p)
257
261
                        Py_FatalError(
258
262
                                "PyThreadState_Delete: small circular list(!)"