mirror of
https://github.com/python/cpython.git
synced 2025-08-15 06:10:47 +00:00
Fix typos in comments (#120481)
This commit is contained in:
parent
285f42c850
commit
656a1c8108
4 changed files with 5 additions and 5 deletions
|
@ -214,7 +214,7 @@ _PyFrame_MakeAndSetFrameObject(_PyInterpreterFrame *frame);
|
||||||
|
|
||||||
/* Gets the PyFrameObject for this frame, lazily
|
/* Gets the PyFrameObject for this frame, lazily
|
||||||
* creating it if necessary.
|
* creating it if necessary.
|
||||||
* Returns a borrowed referennce */
|
* Returns a borrowed reference */
|
||||||
static inline PyFrameObject *
|
static inline PyFrameObject *
|
||||||
_PyFrame_GetFrameObject(_PyInterpreterFrame *frame)
|
_PyFrame_GetFrameObject(_PyInterpreterFrame *frame)
|
||||||
{
|
{
|
||||||
|
|
|
@ -346,7 +346,7 @@ struct _gc_runtime_state {
|
||||||
Py_ssize_t long_lived_pending;
|
Py_ssize_t long_lived_pending;
|
||||||
|
|
||||||
/* gh-117783: Deferred reference counting is not fully implemented yet, so
|
/* gh-117783: Deferred reference counting is not fully implemented yet, so
|
||||||
as a temporary measure we treat objects using deferred referenence
|
as a temporary measure we treat objects using deferred reference
|
||||||
counting as immortal. The value may be zero, one, or a negative number:
|
counting as immortal. The value may be zero, one, or a negative number:
|
||||||
0: immortalize deferred RC objects once the first thread is created
|
0: immortalize deferred RC objects once the first thread is created
|
||||||
1: immortalize all deferred RC objects immediately
|
1: immortalize all deferred RC objects immediately
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Implementation of safe memory reclamation scheme using
|
* Implementation of safe memory reclamation scheme using
|
||||||
* quiescent states.
|
* 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 FreeBSD written by Jeffrey Roberson. It is heavily modified. Any bugs
|
||||||
* in this code are likely due to the modifications.
|
* in this code are likely due to the modifications.
|
||||||
*
|
*
|
||||||
|
@ -238,7 +238,7 @@ _Py_qsbr_unregister(PyThreadState *tstate)
|
||||||
struct _PyThreadStateImpl *tstate_imp = (_PyThreadStateImpl*) tstate;
|
struct _PyThreadStateImpl *tstate_imp = (_PyThreadStateImpl*) tstate;
|
||||||
|
|
||||||
// gh-119369: GIL must be released (if held) to prevent deadlocks, because
|
// 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.
|
// locks will not implicitly release the GIL.
|
||||||
assert(!tstate->_status.holds_gil);
|
assert(!tstate->_status.holds_gil);
|
||||||
|
|
||||||
|
|
|
@ -1301,7 +1301,7 @@ PyObject *descr, DescriptorClassification kind, bool is_method)
|
||||||
}
|
}
|
||||||
/* Cache entries must be unsigned values, so we offset the
|
/* Cache entries must be unsigned values, so we offset the
|
||||||
* dictoffset by MANAGED_DICT_OFFSET.
|
* 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;
|
dictoffset -= MANAGED_DICT_OFFSET;
|
||||||
assert(((uint16_t)dictoffset) == dictoffset);
|
assert(((uint16_t)dictoffset) == dictoffset);
|
||||||
cache->dict_offset = (uint16_t)dictoffset;
|
cache->dict_offset = (uint16_t)dictoffset;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue