File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
graalpython/lib-graalpython/patches/greenlet Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/src/greenlet/TThreadStateDestroy.cpp b/src/greenlet/TThreadStateDestroy.cpp
2
+ index 645bf52..80e8864 100644
3
+ --- a/src/greenlet/TThreadStateDestroy.cpp
4
+ +++ b/src/greenlet/TThreadStateDestroy.cpp
5
+ @@ -125,6 +125,9 @@ struct ThreadState_DestroyNoGIL
6
+ // drop this lock.
7
+ LockGuard cleanup_lock(*mod_globs->thread_states_to_destroy_lock);
8
+
9
+ + #if GRAALVM_PYTHON
10
+ + return; // 'PyInterpreterState_Head()' is not supported
11
+ + #else
12
+ if (state && state->has_main_greenlet()) {
13
+ // Because we don't have the GIL, this is a race condition.
14
+ if (!PyInterpreterState_Head()) {
15
+ @@ -150,6 +153,7 @@ struct ThreadState_DestroyNoGIL
16
+ }
17
+ }
18
+ }
19
+ + #endif
20
+ }
21
+
22
+ static int
Original file line number Diff line number Diff line change
1
+ [[rules ]]
2
+ version = ' >= 3.0.0'
3
+ patch = ' greenlet-3.0.0.patch'
You can’t perform that action at this time.
0 commit comments