From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15707 invoked by alias); 21 Nov 2008 01:49:50 -0000 Received: (qmail 15585 invoked by uid 22791); 21 Nov 2008 01:49:49 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Nov 2008 01:49:10 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 296BC10C2E; Fri, 21 Nov 2008 01:49:08 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 129E410C2C; Fri, 21 Nov 2008 01:49:08 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1L3L8t-00059I-K7; Thu, 20 Nov 2008 20:49:07 -0500 Date: Fri, 21 Nov 2008 19:07:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFA: properly handle the GIL Message-ID: <20081121014907.GA19748@caradoc.them.org> Mail-Followup-To: Tom Tromey , gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00577.txt.bz2 On Thu, Nov 20, 2008 at 06:38:07PM -0700, Tom Tromey wrote: > This patch changes gdb to only acquire the GIL before running Python > code. This is now a general rule for hacking on the Python > integration: if the call chain originates in gdb, and enters Python, > then the GIL must first be acquired. Currently only the "python" > command is affected, but there are more instances on the python > branch. This looks OK. Is this a recursive lock? That is, do we have to worry about GDB -> Python -> GDB -> Python taking the lock twice? -- Daniel Jacobowitz CodeSourcery