From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [BUG] Regexp compiler, problem with character classes Date: Fri, 15 Sep 2006 10:29:37 -0400 Message-ID: References: <87fyeu5937.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1158330698 24359 80.91.229.2 (15 Sep 2006 14:31:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Sep 2006 14:31:38 +0000 (UTC) Cc: emacs-devel@gnu.org, bojohan+mail@dd.chalmers.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 15 16:31:36 2006 Return-path: Envelope-to: ged-emacs-devel@gmane.org Original-Received: from mail-relay.eunet.no ([193.71.71.242]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GOEiB-00006c-5S for ged-emacs-devel@gmane.org; Fri, 15 Sep 2006 16:30:36 +0200 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by mail-relay.eunet.no (8.13.6/8.13.1/GN) with ESMTP id k8FEUBxG075357 for ; Fri, 15 Sep 2006 16:30:12 +0200 (CEST) (envelope-from emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org) Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GOEhd-0007RZ-00 for ged-emacs-devel@m.gmane.org; Fri, 15 Sep 2006 10:30:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GOEhT-0007R1-3z for emacs-devel@gnu.org; Fri, 15 Sep 2006 10:29:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GOEhR-0007Qi-Kn for emacs-devel@gnu.org; Fri, 15 Sep 2006 10:29:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GOEhR-0007Qf-Hg for emacs-devel@gnu.org; Fri, 15 Sep 2006 10:29:49 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GOEjb-0004Xq-Jq for emacs-devel@gnu.org; Fri, 15 Sep 2006 10:32:03 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GOEhF-00072t-Ic; Fri, 15 Sep 2006 10:29:37 -0400 Original-To: Chong Yidong In-reply-to: <87fyeu5937.fsf@stupidchicken.com> (message from Chong Yidong on Thu, 14 Sep 2006 19:20:28 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on spamd1.kq.no Xref: news.gmane.org gmane.emacs.devel:59869 Archived-At: + void + clear_regexp_cache () + { + int i; + + BLOCK_INPUT; + for (i = 0; i < REGEXP_CACHE_SIZE; ++i) + searchbufs[i].regexp = Qnil; + UNBLOCK_INPUT; + } 1. That leaks the memory in the compiled regexps. 2. I don't see a reason for BLOCK_INPUT. I don't think anything in a signal handler can compile a regexp. Is that not so?