diff options
author | Xie Yanbo <xieyanbo@gmail.com> | 2024-06-20 03:16:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 03:16:14 (GMT) |
commit | 656a1c81083b76b9d998c983f4329348a65985d3 (patch) | |
tree | 89ce141cfeecb4af06cd969d9170fa649aa3494c /Python | |
parent | 285f42c850da0d8ca31850088eb7b9247cbbbc71 (diff) | |
download | cpython-656a1c81083b76b9d998c983f4329348a65985d3.zip cpython-656a1c81083b76b9d998c983f4329348a65985d3.tar.gz cpython-656a1c81083b76b9d998c983f4329348a65985d3.tar.bz2 |
Fix typos in comments (#120481)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/qsbr.c | 4 | ||||
-rw-r--r-- | Python/specialize.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Python/qsbr.c b/Python/qsbr.c index a732115..a40219a 100644 --- a/Python/qsbr.c +++ b/Python/qsbr.c @@ -2,7 +2,7 @@ * Implementation of safe memory reclamation scheme using * quiescent states. * - * This is dervied from the "GUS" safe memory reclamation technique + * This is derived from the "GUS" safe memory reclamation technique * in FreeBSD written by Jeffrey Roberson. It is heavily modified. Any bugs * in this code are likely due to the modifications. * @@ -238,7 +238,7 @@ _Py_qsbr_unregister(PyThreadState *tstate) struct _PyThreadStateImpl *tstate_imp = (_PyThreadStateImpl*) tstate; // gh-119369: GIL must be released (if held) to prevent deadlocks, because - // we might not have an active tstate, which means taht blocking on PyMutex + // we might not have an active tstate, which means that blocking on PyMutex // locks will not implicitly release the GIL. assert(!tstate->_status.holds_gil); diff --git a/Python/specialize.c b/Python/specialize.c index 5e22ebf..ad2f747 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -1301,7 +1301,7 @@ PyObject *descr, DescriptorClassification kind, bool is_method) } /* Cache entries must be unsigned values, so we offset the * dictoffset by MANAGED_DICT_OFFSET. - * We do the reverese offset in LOAD_ATTR_METHOD_LAZY_DICT */ + * We do the reverse offset in LOAD_ATTR_METHOD_LAZY_DICT */ dictoffset -= MANAGED_DICT_OFFSET; assert(((uint16_t)dictoffset) == dictoffset); cache->dict_offset = (uint16_t)dictoffset; |