Skip to content

Commit 2b8cc35

Browse files
committed
Fix up comments
1 parent d9c45c6 commit 2b8cc35

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Include/internal/pycore_stackref.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,9 @@ PyStackRef_IsNullOrInt(_PyStackRef ref);
265265
static const _PyStackRef PyStackRef_ERROR = { .bits = Py_TAG_INVALID };
266266

267267
/* Wrap a pointer in a stack ref.
268-
* The result stack reference is not safe and should only be used in uops to
269-
* pass values from one uop to another */
268+
* The resulting stack reference is not safe and should only be used
269+
* in the interpreter to pass values from one uop to another.
270+
* The GC should never see one of these stack refs. */
270271
static inline _PyStackRef
271272
PyStackRef_Wrap(void *ptr)
272273
{

Python/bytecodes.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3892,8 +3892,6 @@ dummy_func(
38923892
}
38933893

38943894
op(_PUSH_FRAME, (new_frame -- )) {
3895-
// Write it out explicitly because it's subtly different.
3896-
// Eventually this should be the only occurrence of this code.
38973895
assert(tstate->interp->eval_frame == NULL);
38983896
_PyInterpreterFrame *temp = PyStackRef_Unwrap(new_frame);
38993897
DEAD(new_frame);

0 commit comments

Comments
 (0)