Tagged articles
4 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Oct 19, 2024 · Fundamentals

Understanding Python's Virtual Machine Execution and Runtime Stack

This article explains how the Python interpreter initializes its runtime environment, compiles source code into PyCodeObject bytecode, creates stack frames, and executes the bytecode using functions like PyEval_EvalFrame and _PyEval_EvalFrameDefault while detailing the role of the runtime stack and its associated C macros.

PythonRuntime Stackbytecode
0 likes · 21 min read
Understanding Python's Virtual Machine Execution and Runtime Stack
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Oct 18, 2024 · Fundamentals

How Python’s Virtual Machine Executes Bytecode: Step‑by‑Step Process

This article explains how the Python interpreter, after runtime initialization, creates a stack frame, invokes a series of C functions such as PyEval_EvalCode, _PyEval_Vector, and _PyEval_EvalFrameDefault to traverse and execute bytecode, and details the underlying runtime stack structures and macro APIs that support instruction evaluation.

C APIPyEvalPython
0 likes · 25 min read
How Python’s Virtual Machine Executes Bytecode: Step‑by‑Step Process
Java Captain
Java Captain
May 20, 2020 · Fundamentals

Why Setting Unused Objects to null May Not Help Java Garbage Collection

This article explains, with concrete Java examples and JVM runtime‑stack analysis, why manually assigning null to objects that are out of scope does not always trigger earlier garbage collection, and how stack slot reuse can achieve the same effect without relying on a questionable practice.

Garbage CollectionJVMMemory Management
0 likes · 8 min read
Why Setting Unused Objects to null May Not Help Java Garbage Collection