Branch: Tag:

2018-08-08

2018-08-08 14:39:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime [Threads] [RACE]: Fixed loss of Pike_interpreter_pointer.

The Pike_interpreter_pointer must not be altered by threads not
holding the interpreter lock...

Fixes [Pike-120].

1205:    free_object(thread_obj);    thread_obj = NULL;    num_threads--; -  mt_unlock_interpreter(); +    #ifdef PIKE_DEBUG    Pike_interpreter_pointer = NULL;   #endif -  +  mt_unlock_interpreter();    }   }