Skip to content

Commit 34f7fe7

Browse files
committed
requested changes
1 parent 1282325 commit 34f7fe7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Modules/_functoolsmodule.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,9 +1489,10 @@ bounded_lru_cache_wrapper(lru_cache_object *self, PyObject *args, PyObject *kwds
14891489
result = PyObject_Call(self->func, args, kwds);
14901490

14911491
Py_BEGIN_CRITICAL_SECTION(self);
1492-
/* Note: key will be released in the below function and
1493-
result may be relased on error, or returned as a passthrough
1494-
or have its reference count increased if is added to cache. */
1492+
/* Note: key will be stolen in the below function, and
1493+
result may be stolen or sometimes re-returned as a passthrough.
1494+
Treat both as being stolen.
1495+
*/
14951496
result = bounded_lru_cache_update_lock_held(self, result, key, hash);
14961497
Py_END_CRITICAL_SECTION();
14971498

0 commit comments

Comments
 (0)