Skip to content

Commit da8b157

Browse files
colesburyYhg1s
andauthored
Update Objects/obmalloc.c
Co-authored-by: T. Wouters <thomas@python.org>
1 parent a4c76a6 commit da8b157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/obmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ _PyObject_MiRealloc(void *ctx, void *ptr, size_t nbytes)
320320
return NULL;
321321
}
322322

323-
// Free threaded Python allows safe access to the PyObject reference count
323+
// Free threaded Python allows access from other threads to the PyObject reference count
324324
// fields for a period of time after the object is freed (see InternalDocs/qsbr.md).
325325
// These fields are typically initialized by PyObject_Init() using relaxed
326326
// atomic stores. We need to copy these fields in a thread-safe way here.

0 commit comments

Comments
 (0)