From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Watchpoints for emacs lisp. Date: Mon, 24 May 2010 13:47:45 -0400 Message-ID: References: <28512483.post@talk.nabble.com> <28523705.post@talk.nabble.com> <28567671.post@talk.nabble.com> <28574547.post@talk.nabble.com> <7FA18246-9874-4EC2-AAEB-55B693541C20@mit.edu> <28577522.post@talk.nabble.com> <28585093.post@talk.nabble.com> <28585789.post@talk.nabble.com> <28586371.post@talk.nabble.com> <28587094.post@talk.nabble.com> <28657657.post@talk.nabble.com> <28657973.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274723289 21637 80.91.229.12 (24 May 2010 17:48:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 May 2010 17:48:09 +0000 (UTC) Cc: Emacs-devel@gnu.org To: "alin.s" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 24 19:48:07 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OGbl1-000378-Ad for ged-emacs-devel@m.gmane.org; Mon, 24 May 2010 19:48:07 +0200 Original-Received: from localhost ([127.0.0.1]:41413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGbl0-0006MX-Rd for ged-emacs-devel@m.gmane.org; Mon, 24 May 2010 13:48:06 -0400 Original-Received: from [140.186.70.92] (port=46303 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGbko-0006Lt-Lt for Emacs-devel@gnu.org; Mon, 24 May 2010 13:48:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGbkh-0004ii-BL for Emacs-devel@gnu.org; Mon, 24 May 2010 13:47:54 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:24185 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGbkh-0004iZ-1B for Emacs-devel@gnu.org; Mon, 24 May 2010 13:47:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAMlX+ktFpZMM/2dsb2JhbACdenLAXYUTBIw/ X-IronPort-AV: E=Sophos;i="4.53,292,1272859200"; d="scan'208";a="64936894" Original-Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 24 May 2010 13:47:46 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 20C4D8266; Mon, 24 May 2010 13:47:46 -0400 (EDT) In-Reply-To: <28657973.post@talk.nabble.com> (alin s.'s message of "Mon, 24 May 2010 08:12:08 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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 Xref: news.gmane.org gmane.emacs.devel:125200 Archived-At: > The block of code that selects a new symbol (in make-symbol) protects the > shared resource 'symbol_free_list' and the list of blocks for symbol > allocation (symbol_block) against a concurrent access using the > MALLOC_BLOCK_INPUT macro. As far as I know, emacs is only on 1 thread of > execution. > In which cases the access to this shared resource is concurrent? If you build without -DSYNC_INPUT, Emacs may call malloc from asynchronous signal handlers (yes, it's usually considered as a no-no in Unix programming, which is why we have switched to SYNC_INPUT). Another case may have to do with the Gtk build which does use several threads (tho the extra ones are limited to the Gtk UI part and I'm not sure if they could interact with this). Stefan