Skip to content

Commit e08a0d8

Browse files
committed
Update greenlet patch
1 parent 0bbb8bc commit e08a0d8

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/src/greenlet/TThreadStateDestroy.cpp b/src/greenlet/TThreadStateDestroy.cpp
2+
index 37fcc8c..8cf33ae 100644
3+
--- a/src/greenlet/TThreadStateDestroy.cpp
4+
+++ b/src/greenlet/TThreadStateDestroy.cpp
5+
@@ -71,6 +71,7 @@ private:
6+
static bool
7+
MarkGreenletDeadIfNeeded(ThreadState* const state)
8+
{
9+
+#if 0 // GraalPy change
10+
if (state && state->has_main_greenlet()) {
11+
// mark the thread as dead ASAP.
12+
// this is racy! If we try to throw or switch to a
13+
@@ -83,6 +84,7 @@ private:
14+
return true;
15+
}
16+
return false;
17+
+#endif // GraalPy change
18+
}
19+
20+
static void
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[[rules]]
2-
version = '>= 3.0.0'
2+
version = '>= 3.1.1'
3+
patch = 'greenlet-3.1.1.patch'
4+
license = 'MIT'
5+
6+
[[rules]]
7+
version = '>= 3.0.0, < 3.1.1'
38
patch = 'greenlet-3.0.0.patch'
49
license = 'MIT'

0 commit comments

Comments
 (0)