Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-81057: Add PyInterpreterState.static_objects#99397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes from1 commit
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
PrevPrevious commit
Add PyInterpreterState.cached_objects.
  • Loading branch information
@ericsnowcurrently
ericsnowcurrently committedNov 11, 2022
commit65532f63e195efc025491572a066db9757139194
7 changes: 7 additions & 0 deletionsInclude/internal/pycore_global_objects.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,6 +49,13 @@ struct _Py_global_objects {
PyObject *interned;
};

#define _Py_INTERP_CACHED_OBJECT(interp, NAME) \
(interp)->cached_objects.NAME

struct _Py_interp_cached_objects {
int _not_set;
};

#define _Py_INTERP_STATIC_OBJECT(interp, NAME) \
(interp)->static_objects.NAME
#define _Py_INTERP_SINGLETON(interp, NAME) \
Expand Down
1 change: 1 addition & 0 deletionsInclude/internal/pycore_interp.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -189,6 +189,7 @@ struct _is {
struct callable_cache callable_cache;
PyCodeObject *interpreter_trampoline;

struct _Py_interp_cached_objects cached_objects;
struct _Py_interp_static_objects static_objects;

/* The following fields are here to avoid allocation during init.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp