Branch: Tag:

2014-04-28

2014-04-28 14:39:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Avoid threads_disable().

The Pike compiler now uses a dedicated reentrant lock instead
of the brute-force approach of using threads_disable().

This should improve concurrency with other threads.

34:    int compilation_depth; /* Current class nesting depth. */      #ifdef PIKE_THREADS -  int saved_threads_disabled; +  int saved_lock_depth;   #endif    struct mapping *resolve_cache;   };