Branch: Tag:

2000-06-10

2000-06-10 11:52:46 by Martin Stjernholm <mast@lysator.liu.se>

Renamed the gc mark callback to make the incompatibility in it clear.

Rev: src/encode.c:1.59
Rev: src/modules/Java/jvm.c:1.19
Rev: src/object.c:1.123
Rev: src/program.c:1.241
Rev: src/program.h:1.91
Rev: src/threads.c:1.129

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.128 2000/06/09 22:48:31 mast Exp $"); + RCSID("$Id: threads.c,v 1.129 2000/06/10 11:52:44 mast Exp $");      int num_threads = 1;   int threads_disabled = 0;
1091:    th_destroy(& THIS_THREAD->id);   }    - static void thread_was_marked(struct object *o) + static void thread_was_recursed(struct object *o)   {    struct thread_state *tmp=THIS_THREAD;    if(tmp->thread_local != NULL)
1304:    /* function(:int) */    ADD_FUNCTION("status",f_thread_id_status,tFunc(tNone,tInt),0);    ADD_FUNCTION("_sprintf",f_thread_id__sprintf,tFunc(tNone,tStr),0); -  set_gc_mark_callback(thread_was_marked); +  set_gc_recurse_callback(thread_was_recursed);    set_gc_check_callback(thread_was_checked);    set_init_callback(init_thread_obj);    set_exit_callback(exit_thread_obj);