Appendix A: Glossary This appendix lists the main terms used in the book, grouped by topic and sorted alphabetically by
English term within each group. Each entry links to the section that treats the term in detail, so
that readers can look it up quickly.
Concurrency and Scheduling Term Chapter Chinese Abbreviation Actor Model 1.3 Actor 模型 Alternate Signal Stack 9.6 备用信号栈 sigaltstack Asymmetric Coroutine 9.3 非对称协程 Async-Signal-Safe 9.6 异步信号安全 Asynchronous Preemption 9.7 异步抢占 Back Edge 9.7 回边 Channel 10.1 channel chan Communicating Sequential Processes 1.3 通信顺序进程 CSP Cooperative Preemption 9.7 协作式抢占 Coroutine 9.3 协程 Daemon Thread 3.6 守护线程 Deadlock 1.3 死锁 Direct Handoff 10.3 直接传递 Edge-Triggered 9.9 边沿触发 ET Full Coroutine 9.3 完全协程 Function Coloring 9.3 函数染色 goroutine 9.3 goroutine G/g Goroutine Leak 9.3 goroutine 泄漏 Guarded Command 1.3 守卫命令 I/O Multiplexing 9.9 I/O 多路复用 Level-Triggered 9.9 水平触发 LT Machine 9.3 工作线程 M/m Main Goroutine 3.6 主 goroutine Network Poller 9.9 网络轮询器 netpoll Non-spinning 9.3 非自旋 Non-Uniform Memory Access 9.11 非均匀访存 NUMA One-shot Continuation 9.3 一次性续延 Polling 9.7 轮询 Preemptive 9.7 抢占式 Processor 9.3 处理器 P/p Rendezvous 1.3 会合 Runtime 1.2 运行时 Safepoint 9.7 安全点 Scheduler 9 调度器 sched Self-Pipe Trick 9.6 自管道技巧 Signal Chaining 9.6 信号链 Spinning 9.4 自旋 Stackful Coroutine 9.3 有栈协程 Stackless Coroutine 9.3 无栈协程 Structured Concurrency 3.6 结构化并发 Symmetric Coroutine 9.3 对称协程 System Monitor 9.8 系统监控 sysmon System Stack 9.3 系统栈 g0 Template Thread 9.5 模板线程 Thread-Local Storage 3.5 线程本地存储 TLS Time to Safepoint 9.7 到达安全点的时间 TTSP Timer 9.10 计时器 Work Stealing 9.2 工作窃取
Synchronization and the Memory Model Term Chapter Chinese Abbreviation ABA Problem 11.3 ABA 问题 Atomic Operation 11.3 原子操作 Barging 11.2 插队 Compare-And-Swap 11.3 比较并交换 CAS Condition Variable 11.4 条件变量 Consensus Number 11.3 共识数 Cooperative Cancellation 11.8 协作式取消 Critical Section 11.2 临界区 Data Race 11.9 数据竞争 Data-Race-Free 11.9 免数据竞争 DRF Epoch-Based Reclamation 11.3 纪元回收 EBR False Sharing 12.2 伪共享 Happens-Before 11.9 先行发生 Hazard Pointer 11.3 危险指针 Litmus Test 11.9 石蕊测试 Lock-free 11.3 无锁 LF Memory Barrier 11.9 内存屏障 Memory Consistency Model 11.9 内存一致模型 Monitor 1.3 管程 Multi-Copy Atomicity 11.9 多副本原子性 Obstruction-free 11.3 无阻碍 Out-of-Thin-Air Value 11.9 凭空出现的值 OOTA Read-Copy-Update 11.3 读-复制-更新 RCU Semaphore 1.3 信号量 Sequenced Before 11.9 程序次序先于 Sequential Consistency 11.9 顺序一致性 SC Spurious Wakeup 11.4 虚假唤醒 Store Buffer 11.9 存储缓冲 Synchronized Before 11.9 同步先于 Victim Cache 11.6 victim 缓存 Wait-free 11.3 无等待 Weak Ordering 11.9 弱序
Memory Allocation Term Chapter Chinese Abbreviation Arena 12.3 区域 heapArena Arena Hint 12.3 区域提示 arenaHint Commit 12.3 提交 External Fragmentation 12.1 外部碎片 Fast Path 12.1 快速路径 First Fit 12.7 首次适配 Free List 12.2 自由表 Heap 12 堆 Heap Profile 12.8 堆剖面 Internal Fragmentation 12.1 内部碎片 Large Object 12.4 大对象 Malloc Header 12.1 分配头 Page 12.7 页 Page Allocator 12.7 页分配器 Poisson Process 12.8 泊松过程 Radix Tree 12.7 基数树 Reserve 12.3 预留 Scavenging 12.7 归还 Size Class 12.1 尺寸类 Slow Path 12.1 慢速路径 Small Object 12.5 小对象 Summary 12.7 摘要 Tiny Allocator 12.6 微对象分配器 Tiny Object 12.6 微对象
Garbage Collection Term Chapter Chinese Abbreviation Bitmap 13.5 位图 Card Table 13.8 卡表 Cleanup 13.10 清理函数 Collector 13.1 回收器 Conservative 13.7 保守式 Finalizer 13.10 终结器 Garbage Collection 13 垃圾回收 GC Generational Hypothesis 13.8 分代假设 Graph Flood 13.11 图泛洪 Heap Goal 13.3 堆目标 Hybrid Write Barrier 13.2 混合写屏障 Liveness 13.1 存活性 Mark Assist 13.4 标记辅助 Mark Worker 13.4 标记工作者 Mark-Sweep 13.1 标记清扫 Mutator 13.1 赋值器 Pacer 13.3 调步器 Proportional Sweep 13.5 比例清扫 Ragged Barrier 13.6 不规则屏障 Reachability 13.1 可达性 Reference Counting 13.13 引用计数 RC Remembered Set 13.8 记忆集 Request Hypothesis 13.9 请求假设 Resurrection 13.10 复活 Soft Memory Limit 13.3 软内存限制 Span Queue 13.11 span 队列 spanQueue Special Record 13.10 特殊记录 special Stack Map 13.7 栈映射 Stack Object 13.7 栈对象 Stop the World 13.1 停止一切 STW Sweep 13.5 清扫 Sweep Generation 13.5 清扫代 sweepgen Tracing 13.13 追踪 Tricolor Abstraction 13.1 三色抽象 Tricolor Invariant 13.1 三色不变式 Weak Pointer 13.10 弱指针 Write Barrier 13.2 写屏障 WB/wb
Execution Stack Term Chapter Chinese Abbreviation Contiguous Stack 14.1 连续栈 Frame Pointer 2.2 帧指针 Hot Split 14.1 热分裂 Prologue 2.4 函数序言 Segmented Stack 14.1 分段栈 Spill Space 2.4 溢出区 Stack 14 栈 Stack Copy 14.4 栈拷贝 Stack Frame 2.2 栈帧 Stack Growth 14.3 栈增长 Stack Guard 2.4 警戒线 Stack Pointer 2.1 栈指针 SP Stack Shrinking 14.5 栈收缩 Unwinder 6.3 栈展开器
Language Features and the Compiler Term Chapter Chinese Abbreviation ABI Wrapper 2.3 ABI 包装函数 Alias Declaration 4.3 别名声明 Application Binary Interface 2.3 应用二进制接口 ABI Argument Frame 15.6 参数帧 Automatic Semicolon Insertion 15.1 自动分号插入 Basic Block 3.2 基本块 Bounds-Check Elimination 15.3 边界检查消除 BCE Boxing 4.2 装箱 Callee-saved Register 2.4 被调方保存寄存器 Calling Convention 2.3 调用约定 Checked Exception 7.1 受检异常 Closure 6.1 闭包 Closure Context Register 6.1 闭包上下文寄存器 Constraint 8.2 约束 Contract 8.2 合约 Core Type 8.3 核心类型 Dead-Code Elimination 3.4 死代码消除 Defer Bits 6.2 延迟位图 Defer Statement 6.2 延迟语句 Devirtualization 15.3 去虚化 Dictionary Passing 4.2 字典传递 Dynamic Dispatch 4.2 动态分派 Error Tree 7.2 错误树 Escape Analysis 15.5 逃逸分析 Export Data 3.2 导出数据 F-bounded Polymorphism 8.4 F-有界多态 Fatal Error 6.3 致命错误 First-class Citizen 6 一等公民 GC Shape 8.1 GC 形状 GC Shape Stenciling 8.1 GC 形状模板化 Generic Method 8.4 泛型方法 Gradual Code Repair 4.3 渐进式代码修复 Higher-kinded Type 8.4 高阶类型 Inline Tree 15.3 内联树 Inlining 15.3 内联 Inlining Cost 15.3 内联成本 Interface Table 4.2 接口表 itab Intrinsic 15.2 内在函数 Iterative Stability 15.3 迭代稳定性 Leaf Function 9.7 叶函数 Method Expression 6.1 方法表达式 Method Set 4.2 方法集 Method Value 6.1 方法值 Mid-Stack Inlining 15.3 中栈内联 Monomorphization 8.1 单态化 Nominal Type 4.1 名义类型 Opaque Error 7.4 不透明错误 Open-coded Defer 6.2 开放编码式延迟 Panic 6.3 恐慌 Parameter Tag 15.5 参数标签 Pass 15.2 趟 Pinning 15.6 固定 Pointer Checker 15.4 指针检查器 checkptr Preamble 15.6 序言 Profile-Guided Devirtualization 15.3 按剖面去虚化 Profile-Guided Optimization 15.3 性能制导优化 PGO Program Counter 2.1 程序计数器 PC Pseudo-register 2.1 伪寄存器 Recursive Descent 15.1 递归下降 Register 2.1 寄存器 Rewrite Rule 15.2 重写规则 Sentinel Error 7.4 哨兵错误 Separate Compilation 16.7 分离编译 Source Stability 15.3 源码稳定性 Specialization 8.4 特化 Static Single Assignment 15.2 静态单赋值 SSA Structural Typing 4.2 结构化类型 Stub 15.6 桩函数 Syntax Tree 3.2 语法树 Token 15.1 词法单元 Transitive Inlining 15.3 传递内联 Type Definition 4.3 类型定义 Type Descriptor 4.1 类型描述符 _type Type Erasure 8.1 类型擦除 Type Inference 8.3 类型推断 Type Parameter 8.1 类型参数 Type Set 8.3 类型集 Unification 8.3 合一 Unified IR 15.2 统一 IR Walk 3.2 降级 Wrapper Function 6.3 包装函数 Wrapping 7.2 包装
Data Structures Term Chapter Chinese Abbreviation Amortized Analysis 5.1 摊还分析 Chaining 5.3 链地址法 Collision 5.3 冲突 Control Word 5.4 控制字 Dynamic Array 5.1 动态数组 Extendible Hashing 5.4 可扩展哈希 Full Slice Expression 5.1 完整切片表达式 Hash Flooding 5.3 哈希洪水 Hash Trie 11.7 散列字典树 Interning 5.2 驻留 Lazy Deletion 9.10 惰性删除 Load Factor 5.3 装载因子 Lock Striping 11.7 锁分段 Open Addressing 5.3 开放定址法 Probe Sequence 5.3 探测序列 Ring Buffer 10.2 环形缓冲区 Timing Wheel 9.10 时间轮 Tombstone 5.4 墓碑
Term Chapter Chinese Abbreviation Action 3.1 动作 Action Graph 3.1 动作图 Auxiliary Vector 3.5 辅助向量 auxv Benchmark 16.5 基准测试 Bootstrapping 3.3 自举 Bubble 16.1 气泡 Build List 17.3 构建列表 Checksum Database 17.4 校验和数据库 Content Addressing 3.1 内容寻址 Diamond Dependency 17.1 钻石依赖 Directed Acyclic Graph 3.6 有向无环图 DAG Diverse Double-Compiling 3.3 多样化双重编译 DDC Durably Blocked 16.1 持久阻塞 Dynamic Linking 3.4 动态链接 Early Cutoff 3.1 提前截断 Epoch 16.2 纪元 Execution Tracer 16.3 执行追踪器 Fixed Point 3.3 不动点 Flame Graph 16.5 火焰图 Flight Recorder 16.3 飞行记录仪 Fuzzing 16.4 模糊测试 High Dynamic Range Histogram 16.6 HDR 直方图 High-Fidelity Build 17.3 高保真构建 Import Compatibility Rule 17.2 导入兼容性规则 Language Server Protocol 16.7 语言服务协议 LSP Layout 3.4 布局 Linker 3.4 链接器 Low-Fidelity Build 17.1 低保真构建 Mann–Whitney U Test 16.5 Mann–Whitney U 检验 Merkle Tree 3.1 Merkle 树 Minimal Version Selection 17.3 最小版本选择 MVS Module Graph Pruning 17.3 模块图剪枝 Object File 3.4 目标文件 Partial Deadlock 16.1 局部死锁 Profile 16.5 剖面 Profiling 16.5 剖析 Pseudo-Version 17.2 伪版本 Race Detector 16.2 竞态检测器 Rebuilding 3.1 重建判定 Relocation 3.4 重定位项 Reproducible Build 3.1 可复现构建 Runtime Metrics 16.6 运行时指标 Scheduling Latency 16.3 调度延迟 Seed Corpus 16.4 种子语料 Semantic Import Versioning 17.2 语义化导入版本 Semantic Versioning 17.2 语义化版本 semver Shadow Memory 16.2 影子内存 Shared Library 3.4 共享库 Snapshot 16.7 快照 Static Linking 3.4 静态链接 Static Lock Ranking 16.1 静态锁排序 Subtest 16.4 子测试 Symbol 3.4 符号 Symbol Resolution 3.4 符号解析 Table-Driven Test 16.4 表驱动测试 Topological Order 3.6 拓扑序 Topological Sort 3.6 拓扑排序 Transparent Log 17.4 透明日志 Trust on First Use 17.4 首次使用时信任 TOFU User Annotation 16.3 用户标注 Vector Clock 16.2 向量时钟 Wait-for Graph 16.1 等待图
Heterogeneous Computing and AI Term Chapter Chinese Abbreviation Arithmetic Intensity 18.4 算术强度 Autoregressive 20.3 自回归 Backpressure 20.3 背压 Batching 19.1 批处理 Byte Pair Encoding 20.2 字节对编码 BPE Command Buffer 19.1 命令缓冲 Continuous Batching 20.3 连续批处理 CUDA Driver API 18.1 驱动 API CUDA Runtime API 18.1 运行时 API Current Context 19.2 当前上下文 Decision Point 21.2 决策点 Decode 20.3 解码 Draw Call 19.1 绘制调用 Embarrassingly Parallel 19.3 易并行 Explicit API 19.1 显式 API External Synchronization 19.1 外部同步 Extra M 18.2 extra M Fixed-Function 19.1 固定功能 Graph Capture 18.1 图捕获 Harness 21.1 运行框架 Host 21.2 宿主 Instancing 19.1 实例化 Iteration-Level Scheduling 20.3 迭代级调度 KV Cache 20.1 KV 缓存 Launch Overhead 18.1 启动开销 Main Thread 19.2 主线程 Model Context Protocol 21.2 Model Context Protocol MCP Narrow Waist 21.2 细腰 Page-Locked Memory 18.3 页锁定内存 Prefill 20.3 预填充 Premultiplied Alpha 19.4 预乘 alpha Quantization 20.2 量化 Render Bundle 19.4 渲染包 Rendering Pipeline 19.1 渲染管线 Roofline Model 18.4 Roofline 模型 Selective Batching 20.3 选择性批处理 Shader 19.1 着色器 Single Instruction, Multiple Threads 18.4 单指令多线程 SIMT Software Rendering 19.3 软件渲染 Stream 18.1 流 Stride 20.2 步长 Stub Model 21.1 桩模型 Thread Affinity 19.2 线程亲和 Tiling 19.3 分块 Time to First Token 20.3 首词元时间 TTFT Token 20.2 词元 Tokenizer 20.2 分词器 Unified Memory 18.3 统一内存 Workflow 21.1 工作流
← Previous Closing Words: Where Is Go Headed? Next → Support the Author