kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64

David Xu davidxu at freebsd.org
Sun Aug 29 07:00:19 UTC 2010


The following reply was made to PR kern/131597; it has been noted by GNATS.

From: David Xu <davidxu at freebsd.org>
To: bug-followup at FreeBSD.org, guillaume at morinfr.org
Cc: Kostik Belousov <kostikbel at gmail.com>, John Baldwin <jhb at freebsd.org>
Subject: Re: kern/131597: [kernel] c++ exceptions very slow on FreeBSD 7.1/amd64
Date: Sun, 29 Aug 2010 14:55:32 +0800

 Without the previous signal wrapper patch I posted (I am not sure
 I will use it, because it is too complex),  I think there is another way
 to avoid sigprocmask,  I have ever written a system call
 
 sc_shared_t	*schedctl(void);
 
 
 which returns shared data area between userland and kernel.
 userland code sets a flag in the data area to disable signal delivering.
 when kernel code wants to deliver signal, it also checks the flag,  and
 does not deliver signals if the flag is set, then the problem would be 
 fixed:
 http://people.freebsd.org/~davidxu/schedctl/
 
 


More information about the freebsd-bugs mailing list