Ticket #1391: experimental_initialization_of_task_locks_after_fork_1391.dpatch

File experimental_initialization_of_task_locks_after_fork_1391.dpatch, 563 bytes (added by guest, 7 years ago)

Patch to perform experimental initialization of task locks after fork() (#1391)

Line 
1
2New patches:
3
4[Experimental initialization of task locks after fork() (#1391)
5Thorkil Naur <naur@post11.tele.dk>**20070926191957] {
6hunk ./rts/Schedule.c 2164
7+
8+#if defined(THREADED_RTS)
9+        // Initialize all task locks:
10+        for (task = all_tasks; task != NULL; task=task->all_link) {
11+             initMutex(&task->lock);
12+             debugTrace(DEBUG_sched, "forkProcess: Init a task lock");
13+        }
14+#endif
15+
16}
17
18Context:
19
20[TAG 2007-09-25
21Ian Lynagh <igloo@earth.li>**20070925164536]
22Patch bundle hash:
23438f086ce21d3dc7336c14caa7348c5caf98c302