pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.127 2000/05/22 19:50:29 grubba Exp $"); + RCSID("$Id: threads.c,v 1.128 2000/06/09 22:48:31 mast Exp $");      int num_threads = 1;   int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "mapping.h"   #include "object.h"   #include "pike_macros.h"
pike.git/src/threads.c:1088:    THIS_THREAD->thread_local = NULL;    }    co_destroy(& THIS_THREAD->status_change);    th_destroy(& THIS_THREAD->id);   }      static void thread_was_marked(struct object *o)   {    struct thread_state *tmp=THIS_THREAD;    if(tmp->thread_local != NULL) -  gc_mark_mapping_as_referenced(tmp->thread_local); +  gc_recurse_mapping(tmp->thread_local);   }      static void thread_was_checked(struct object *o)   {    struct thread_state *tmp=THIS_THREAD;    if(tmp->thread_local != NULL) -  gc_check(tmp->thread_local); +  debug_gc_check(tmp->thread_local, T_OBJECT, o);      #ifdef PIKE_DEBUG    if(tmp->swapped)    {    struct pike_frame *f;    debug_malloc_touch(o);    debug_gc_xmark_svalues(tmp->evaluator_stack,tmp->sp-tmp->evaluator_stack-1," in idle thread stack");       for(f=tmp->fp;f;f=f->next)    {