Skip to content

Commit d82d641

Browse files
committed
fix wording
1 parent 0c0f8be commit d82d641

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/contributor/IMPLEMENTATION_DETAILS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,13 @@ many C extensions are not written to reentrant.
261261
So, commonly at any given time there is only one Graal Python thread executing
262262
and all the other threads are waiting to acquire the GIL. If the Python
263263
interpreter shuts down, there are two sets of threads we need to deal with:
264-
"well-behaved" threads created using the `threading` are interrupted and joined
265-
using the `threading` module's `shutdown` function. Daemon threads or threads
266-
created using the internal Python `_thread` module cannot be joined in this
267-
way. For those threads, we invalidate their `PythonThreadState` (a thread-local
268-
data structure) and use the Java `Thread#interrupt` method to interrupt their
269-
waiting on the GIL. This exception is handled by checking if the thread state
270-
has been invalidated and if so, just exit the thread gracefully.
264+
"well-behaved" threads created using the `threading` module are interrupted and
265+
joined using the `threading` module's `shutdown` function. Daemon threads or
266+
threads created using the internal Python `_thread` module cannot be joined in
267+
this way. For those threads, we invalidate their `PythonThreadState` (a
268+
thread-local data structure) and use the Java `Thread#interrupt` method to
269+
interrupt their waiting on the GIL. This exception is handled by checking if the
270+
thread state has been invalidated and if so, just exit the thread gracefully.
271271

272272
For embedders, it may be important to be able to interrupt Python threads by
273273
other means. We use the TruffleSafepoint mechanism to mark our threads waiting

0 commit comments

Comments
 (0)