Skip to content

Commit fcd642b

Browse files
Apply suggestions from code review
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
1 parent db1dd03 commit fcd642b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/internal/pycore_interp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct _Py_long_state {
4444
struct _stoptheworld_state {
4545
PyMutex mutex; // Serializes stop-the-world attempts.
4646

47-
// NOTE: The below fields are protected by HEAD_LOCK(runtime), not by the
47+
// NOTE: The fields below are protected by HEAD_LOCK(runtime), not by the
4848
// above mutex.
4949
bool requested; // Set when a pause is requested.
5050
bool world_stopped; // Set when the world is stopped.

Include/internal/pycore_pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ extern void _PyThreadState_Detach(PyThreadState *tstate);
154154
// "attached" state.
155155
extern void _PyThreadState_Park(PyThreadState *tstate);
156156

157-
// Perform a stop-the-world pause for all threads in the all interpreters.
157+
// Perform a stop-the-world pause for all threads in all interpreters.
158158
//
159159
// Threads in the "attached" state are paused and transitioned to the "GC"
160160
// state. Threads in the "detached" state switch to the "GC" state, preventing

0 commit comments

Comments
 (0)