1 个仓库
Detailed technical studies of how an interpreter handles allocation, reference counting, and garbage collection.
Distinct from Interpreter Memory Managers: Focuses on the analytical study of memory management logic rather than the active management of variables and scopes.
Explore 1 awesome GitHub repository matching operating systems & systems programming · Memory Management Analyses. Refine with filters or upvote what's useful.
CPython-Internals 是一个针对 CPython 解释器的技术实现指南和参考资料。它提供了对内部 C 源代码和架构的详细分析,重点关注控制解释器行为的逻辑。 该项目记录了 Python 对象模型和编译流水线,追踪从原始语法和抽象语法树(AST)到可执行字节码的过程。它还作为 C 扩展开发的参考,解释了如何与内部数据结构交互以及使用 C API。 该材料涵盖了内存管理,包括引用计数和分代垃圾回收,以及全局解释器锁(GIL)的功能。
Analyzes the internal implementation of reference counting, generational garbage collection, and the global interpreter lock.