Skip to content

Commit 61bc8d1

Browse files
Apply suggestions from code review
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent 5f8ad07 commit 61bc8d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_json.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ _encoder_iterate_dict_lock_held(PyEncoderObject *s, PyUnicodeWriter *writer,
17801780
Py_ssize_t pos = 0;
17811781
while (PyDict_Next(dct, &pos, &key, &value)) {
17821782
#ifdef Py_GIL_DISABLED
1783-
// gh-119438: in the free-threading build the lock on dct can get suspended
1783+
// gh-119438: in the free-threading build the critical section on dct can get suspended
17841784
Py_INCREF(key);
17851785
Py_INCREF(value);
17861786
#endif
@@ -1901,7 +1901,7 @@ _encoder_iterate_fast_seq_lock_held(PyEncoderObject *s, PyUnicodeWriter *writer,
19011901
for (Py_ssize_t i = 0; i < PySequence_Fast_GET_SIZE(s_fast); i++) {
19021902
PyObject *obj = PySequence_Fast_GET_ITEM(s_fast, i);
19031903
#ifdef Py_GIL_DISABLED
1904-
// gh-119438: in the free-threading build the lock on s_fast can get suspended
1904+
// gh-119438: in the free-threading build the critical section on s_fast can get suspended
19051905
Py_INCREF(obj);
19061906
#endif
19071907
if (i) {

0 commit comments

Comments
 (0)