Skip to content

Commit eeb8f67

Browse files
authored
pythongh-119786: move adaptive interpreter doc from Python to InternalsDoc (python#120137)
1 parent f878d46 commit eeb8f67

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

InternalDocs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ it is not, please report that through the
1414

1515
[Exception Handling](exception_handling.md)
1616

17+
[Adaptive Instruction Families](adaptive.md)

Python/adaptive.md renamed to InternalDocs/adaptive.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## Families of instructions
44

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

89
A family of instructions has the following fundamental properties:
910

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

3132
## Example family
3233

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

3638
The `LOAD_GLOBAL` instruction performs adaptive specialization,
3739
calling `_Py_Specialize_LoadGlobal()` when the counter reaches zero.

0 commit comments

Comments
 (0)