Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-119786: move adaptive interpreter doc from Python to InternalsDoc #120137

Merged
merged 3 commits into from
Jun 6, 2024
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
1 change: 1 addition & 0 deletions InternalDocs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ it is not, please report that through the

[Exception Handling](exception_handling.md)

[Adaptive Instruction Families](adaptive.md)
10 changes: 6 additions & 4 deletions Python/adaptive.md → InternalDocs/adaptive.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

## Families of instructions

The core part of PEP 659 (specializing adaptive interpreter) is the families
of instructions that perform the adaptive specialization.
The core part of [PEP 659](https://peps.python.org/pep-0659/)
(specializing adaptive interpreter) is the families of
instructions that perform the adaptive specialization.

A family of instructions has the following fundamental properties:

Expand All @@ -30,8 +31,9 @@ although these are not fundamental and may change:

## Example family

The `LOAD_GLOBAL` instruction (in Python/bytecodes.c) already has an adaptive
family that serves as a relatively simple example.
The `LOAD_GLOBAL` instruction (in
[Python/bytecodes.c](https://github.com/python/cpython/blob/main/Python/bytecodes.c))
already has an adaptive family that serves as a relatively simple example.

The `LOAD_GLOBAL` instruction performs adaptive specialization,
calling `_Py_Specialize_LoadGlobal()` when the counter reaches zero.
Expand Down
Loading