Commits

Alexey Borzenkov  committed b14cc36

Make ts_self volatile in g_initialstub

This "fixes" crashes on Windows VC90 (by shifting stack around a little),
but it appears the crash in PyObject_GC_UnTrack is not completely
resolved (still reproducible on debug build of Python 2.6.6 on Windows).

  • Participants
  • Parent commits a86ea63

Comments (0)

Files changed (1)

 		PyObject* args;
 		PyObject* kwargs;
 		PyObject* result;
-		PyGreenlet* ts_self = ts_current;
+		volatile PyGreenlet* ts_self = ts_current;
 		ts_self->stack_start = (char*) 1;  /* running */
 
 		args = ts_passaround_args;