Branch: Tag:

2003-04-01

2003-04-01 14:22:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bugfix for dmalloc.

Rev: src/threads.c:1.168

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.167 2003/03/31 18:43:05 grubba Exp $"); + RCSID("$Id: threads.c,v 1.168 2003/04/01 14:22:20 grubba Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
714:    (unsigned int)Pike_interpreter.thread_id));       cleanup_interpret(); -  DO_IF_DMALLOC( +  DO_IF_DMALLOC({ +  struct object *o = Pike_interpreter.thread_id;    SWAP_OUT_THREAD(OBJ2THREAD(Pike_interpreter.thread_id)); /* de-Init struct */ -  +  Pike_interpreter.thread_id = o;    OBJ2THREAD(Pike_interpreter.thread_id)->swapped=0; -  ) +  })    thread_table_delete(Pike_interpreter.thread_id);    free_object(Pike_interpreter.thread_id);    Pike_interpreter.thread_id=0;