2014-12-04
2014-12-04 19:25:21 by Per Hedbor <ph@opera.com>
-
e8104416d6013c31ee95e7dbbaa2f46ee7689bf4
(16 lines)
(+9/-7)
[
Show
| Annotate
]
Branch: bill/master_archive_support
Avoid crashing when using threads with debug mode on
619: Inside #if defined(PROFILING) and #if defined(PROFILING_DEBUG)
" 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