Branch: Tag:

2000-04-19

2000-04-19 16:14:37 by Martin Stjernholm <mast@lysator.liu.se>

Better debug checks on the interpreter lock.

Rev: src/interpret.c:1.144
Rev: src/interpreter.h:1.41
Rev: src/modules/HTTPLoop/accept_and_parse.c:1.12
Rev: src/modules/HTTPLoop/cache.c:1.9
Rev: src/modules/Java/jvm.c:1.15
Rev: src/modules/files/file.c:1.174
Rev: src/modules/files/sendfile.c:1.38
Rev: src/program.c:1.229
Rev: src/signal_handler.c:1.169
Rev: src/threads.c:1.122
Rev: src/threads.h:1.86

32: Inside #if defined(PIKE_DEBUG)
   if(d_flag)    {   #ifdef _REENTRANT - #ifndef __NT__ -  if(!mt_trylock(& interpreter_lock)) -  fatal("Interpreter running unlocked!\n"); - #endif +  CHECK_INTERPRETER_LOCK();    if(d_flag>1 && thread_for_id(th_self()) != thread_id)    fatal("thread_for_id() (or thread_id) failed in interpreter.h! %p != %p\n",thread_for_id(th_self()),thread_id);   #endif