Branch: Tag:

2000-04-15

2000-04-15 05:05:28 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

more and better debug, some cleanup in gc()

Rev: src/dmalloc.h:1.25
Rev: src/gc.c:1.65
Rev: src/gc.h:1.29
Rev: src/interpreter.h:1.37
Rev: src/las.c:1.175
Rev: src/main.c:1.89
Rev: src/mapping.c:1.73
Rev: src/object.c:1.109
Rev: src/pike_macros.h:1.15
Rev: src/pike_memory.c:1.65
Rev: src/program.c:1.226
Rev: src/stralloc.c:1.82
Rev: src/svalue.h:1.51
Rev: src/threads.c:1.119
Rev: src/threads.h:1.81

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.118 2000/04/12 16:54:42 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.119 2000/04/15 05:05:28 hubbe Exp $");      int num_threads = 1;   int threads_disabled = 0;
579: Inside #if defined(PIKE_DEBUG)
   THREAD_T self = th_self();       if( thread_id && !th_equal( OBJ2THREAD(thread_id)->id, self) ) -  fatal("Current thread is wrong. %x %x\n", -  OBJ2THREAD(thread_id)->id, self); +  fatal("Current thread is wrong. %lx %lx\n", +  (long)OBJ2THREAD(thread_id)->id, (long)self);       if(thread_for_id(th_self()) != thread_id)    fatal("thread_for_id() (or thread_id) failed in new_thread_func! "