We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 918fb1c commit 15cf615Copy full SHA for 15cf615
1 file changed
Modules/_io/bytesio.c
@@ -375,7 +375,7 @@ _io_BytesIO_getvalue_impl(bytesio *self)
375
return PyBytes_FromStringAndSize(PyBytes_AS_STRING(self->buf),
376
self->string_size);
377
#else
378
- if (self->string_size <= 1 || FT_ATOMIC_LOAD_SSIZE_RELAXED(self->exports) > 0)
+ if (self->string_size <= 1 || self->exports > 0)
379
380
381
@@ -437,7 +437,7 @@ read_bytes_lock_held(bytesio *self, Py_ssize_t size)
437
#ifndef Py_GIL_DISABLED
438
if (size > 1 &&
439
self->pos == 0 && size == PyBytes_GET_SIZE(self->buf) &&
440
- FT_ATOMIC_LOAD_SSIZE_RELAXED(self->exports) == 0) {
+ self->exports == 0) {
441
self->pos += size;
442
return Py_NewRef(self->buf);
443
}
0 commit comments