Subject: Re: lib/35969 (ghc-6.4.2 from pkgsrc fails to compile)
To: None <ad@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Andrew Doran <ad@netbsd.org>
List: netbsd-bugs
Date: 03/15/2007 15:55:02
The following reply was made to PR lib/35969; it has been noted by GNATS.

From: "Andrew Doran" <ad@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: lib/35969 (ghc-6.4.2 from pkgsrc fails to compile)
Date: Thu, 15 Mar 2007 15:50:37 -0000 (GMT)

 Another two fixes for this issue:
 
 Module Name:	src
 Committed By:	ad
 Date:		Wed Mar 14 23:33:45 UTC 2007
 
 Modified Files:
 	src/lib/libpthread: pthread.c
 
 Log Message:
 - pthread__park: always check for cancellation.
 - pthread__unpark: cosmetic changes.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.66 -r1.67 src/lib/libpthread/pthread.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 
 ..
 
 Module Name:        src
 Committed By:        ad
 Date:                Wed Mar 14 23:58:24 UTC 2007
 
 Modified Files:
         src/sys/kern: sys_lwp.c
 
 Log Message:
 - Remove the LWP counters. The race between park/unpark rarely occurs
   so it's not worth counting.
 
 - lwp_wakeup: set LW_UNPARKED on the target. Ensures that _lwp_park will
   always be awoken even if another system call eats the wakeup, e.g. as a
   result of an intervening signal. To deal with this correctly for other
   system calls will require a different approach.
 
 - _lwp_unpark, _lwp_unpark_all: use setrunnable if the LWP is not parked
   on the same sync queue: (1) simplifies the code a bit as there no point
   doing anything special for this case (2) makes it possible for p_smutex
   to be replaced by p_mutex and (3) restores the guarantee that the 'hint'
   argument really is just a hint.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.14 -r1.15 src/sys/kern/sys_lwp.c