Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/c-api/unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ APIs:
Return ``0`` on success, ``-1`` on error with an exception set.

This function checks that *unicode* is a Unicode object, that the index is
not out of bounds, and that the object's reference count is one).
not out of bounds, and that the object's reference count is one.
See :c:func:`PyUnicode_WRITE` for a version that skips these checks,
making them your responsibility.

Expand Down
6 changes: 6 additions & 0 deletions Include/internal/pycore_optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,13 @@ PyJitRef_IsBorrowed(JitOptRef ref)
}

struct _Py_UOpsAbstractFrame {
bool globals_watched;
// The version number of the globals dicts, once checked. 0 if unchecked.
uint32_t globals_checked_version;
// Max stacklen
int stack_len;
int locals_len;
PyFunctionObject *func;

JitOptRef *stack_pointer;
JitOptRef *stack;
Expand All @@ -271,6 +275,8 @@ typedef struct _JitOptContext {
char done;
char out_of_space;
bool contradiction;
// Has the builtins dict been watched?
bool builtins_watched;
// The current "executing" frame.
_Py_UOpsAbstractFrame *frame;
_Py_UOpsAbstractFrame frames[MAX_ABSTRACT_FRAME_DEPTH];
Expand Down
Loading
Loading