pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:612:   #endif      #ifdef PROFILING    if (ts->swapped) {    cpu_time_t now = get_cpu_time();   #ifdef PROFILING_DEBUG    fprintf(stderr, "%p: Swap in at: %" PRINT_CPU_TIME    " unlocked: %" PRINT_CPU_TIME "\n",    ts, now, ts->state.unlocked_time);   #endif - #ifdef PIKE_DEBUG -  if (now < -Pike_interpreter.unlocked_time) { -  pike_fatal_dloc("Time at swap in is before time at swap out." -  " %" PRINT_CPU_TIME " < %" PRINT_CPU_TIME -  "\n", now, -Pike_interpreter.unlocked_time); -  } - #endif + /* This will not work, since Pike_interpreter_pointer is always null here... */ + /* #ifdef PIKE_DEBUG */ + /* if (now < -Pike_interpreter.unlocked_time) { */ + /* pike_fatal_dloc("Time at swap in is before time at swap out." */ + /* " %" PRINT_CPU_TIME " < %" PRINT_CPU_TIME */ + /* "\n", now, -Pike_interpreter.unlocked_time); */ + /* } */ + /* #endif */    ts->state.unlocked_time += now;    }   #endif       ts->swapped=0;    Pike_interpreter_pointer = &ts->state;   #ifdef PIKE_DEBUG    thread_swaps++;   #endif