This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Release the GIL while running a gdb command or expression


On 01/29/2019 01:01 PM, Tom Tromey wrote:
>>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
> 
> Tom> The main thread can't run any Python code at all.  If it does run Python
> Tom> code, then Python might release the GIL.  And, when dealing with thread
> Tom> primitives like mutexes or whatnot, it certainly will.  However, if the
> Tom> main thread does release the GIL, then that invalidates the test --
> Tom> since we are trying to test that the GIL is released under ordinary
> Tom> circumstances.
> 
> Tom> I'm back to not seeing a way to test this.
> 
> It's been a while since we discussed this.  I still don't know of a way
> to test it.  I think that the bug fix still makes sense in the absence
> of a test, though.

Fine with me to put this in without a test.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]