https://github.com/pganssle/capsule-gil-poc
PoC for a GIL bug in PyCapsule_Import
https://github.com/pganssle/capsule-gil-poc
Last synced: over 1 year ago
JSON representation
PoC for a GIL bug in PyCapsule_Import
- Host: GitHub
- URL: https://github.com/pganssle/capsule-gil-poc
- Owner: pganssle
- Created: 2018-08-16T21:00:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T21:04:53.000Z (almost 8 years ago)
- Last Synced: 2025-01-24T17:34:36.071Z (over 1 year ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### GIL Release PoC
Instructions:
1. Clone repository
2. `make`
3. See the behavior *without* PyCapsule_Import: `./gil`
> Waiting for GIL (0)
>
> Gil acquired! (0)
>
> Waiting for GIL (1)
>
> Gil released! (0)
>
> Gil acquired! (1)
>
> Gil released! (1)
4. See the behavior *with* PyCapsule_Import: `/.gil import`
> Waiting for GIL (0)
>
> Gil acquired! (0)
>
> Waiting for GIL (1)
>
> **Gil acquired! (1)**
>
> **Gil released! (0)**
>
> Gil released! (1)