Go 语言原本 Go 语言原本
English

术语表

本附录整理了书中出现的主要术语,按主题分组,组内按英文名的字母顺序排列,并给出详细讲解该术语的章节,便于读者回查。

并发与调度

术语章节English缩写
Actor 模型1.3Actor Model
备用信号栈9.6Alternate Signal Stacksigaltstack
非对称协程9.3Asymmetric Coroutine
异步信号安全9.6Async-Signal-Safe
异步抢占9.7Asynchronous Preemption
回边9.7Back Edge
channel10.1Channelchan
通信顺序进程1.3Communicating Sequential ProcessesCSP
协作式抢占9.7Cooperative Preemption
协程9.3Coroutine
守护线程3.6Daemon Thread
死锁1.3Deadlock
直接传递10.3Direct Handoff
边沿触发9.9Edge-TriggeredET
完全协程9.3Full Coroutine
函数染色9.3Function Coloring
goroutine9.3goroutineG/g
goroutine 泄漏9.3Goroutine Leak
守卫命令1.3Guarded Command
I/O 多路复用9.9I/O Multiplexing
水平触发9.9Level-TriggeredLT
工作线程9.3MachineM/m
主 goroutine3.6Main Goroutine
网络轮询器9.9Network Pollernetpoll
非自旋9.3Non-spinning
非均匀访存9.11Non-Uniform Memory AccessNUMA
一次性续延9.3One-shot Continuation
轮询9.7Polling
抢占式9.7Preemptive
处理器9.3ProcessorP/p
会合1.3Rendezvous
运行时1.2Runtime
安全点9.7Safepoint
调度器9Schedulersched
自管道技巧9.6Self-Pipe Trick
信号链9.6Signal Chaining
自旋9.4Spinning
有栈协程9.3Stackful Coroutine
无栈协程9.3Stackless Coroutine
结构化并发3.6Structured Concurrency
对称协程9.3Symmetric Coroutine
系统监控9.8System Monitorsysmon
系统栈9.3System Stackg0
模板线程9.5Template Thread
线程本地存储3.5Thread-Local StorageTLS
到达安全点的时间9.7Time to SafepointTTSP
计时器9.10Timer
工作窃取9.2Work Stealing

同步与内存模型

术语章节English缩写
ABA 问题11.3ABA Problem
原子操作11.3Atomic Operation
插队11.2Barging
比较并交换11.3Compare-And-SwapCAS
条件变量11.4Condition Variable
共识数11.3Consensus Number
协作式取消11.8Cooperative Cancellation
临界区11.2Critical Section
数据竞争11.9Data Race
免数据竞争11.9Data-Race-FreeDRF
纪元回收11.3Epoch-Based ReclamationEBR
伪共享12.2False Sharing
先行发生11.9Happens-Before
危险指针11.3Hazard Pointer
石蕊测试11.9Litmus Test
无锁11.3Lock-freeLF
内存屏障11.9Memory Barrier
内存一致模型11.9Memory Consistency Model
管程1.3Monitor
多副本原子性11.9Multi-Copy Atomicity
无阻碍11.3Obstruction-free
凭空出现的值11.9Out-of-Thin-Air ValueOOTA
读-复制-更新11.3Read-Copy-UpdateRCU
信号量1.3Semaphore
程序次序先于11.9Sequenced Before
顺序一致性11.9Sequential ConsistencySC
虚假唤醒11.4Spurious Wakeup
存储缓冲11.9Store Buffer
同步先于11.9Synchronized Before
victim 缓存11.6Victim Cache
无等待11.3Wait-free
弱序11.9Weak Ordering

内存分配

术语章节English缩写
区域12.3ArenaheapArena
区域提示12.3Arena HintarenaHint
提交12.3Commit
外部碎片12.1External Fragmentation
快速路径12.1Fast Path
首次适配12.7First Fit
自由表12.2Free List
堆12Heap
堆剖面12.8Heap Profile
内部碎片12.1Internal Fragmentation
大对象12.4Large Object
分配头12.1Malloc Header
页12.7Page
页分配器12.7Page Allocator
泊松过程12.8Poisson Process
基数树12.7Radix Tree
预留12.3Reserve
归还12.7Scavenging
尺寸类12.1Size Class
小对象12.5Small Object
慢速路径12.1Slow Path
摘要12.7Summary
微对象分配器12.6Tiny Allocator
微对象12.6Tiny Object

垃圾回收

术语章节English缩写
位图13.5Bitmap
卡表13.8Card Table
清理函数13.10Cleanup
回收器13.1Collector
保守式13.7Conservative
终结器13.10Finalizer
垃圾回收13Garbage CollectionGC
分代假设13.8Generational Hypothesis
图泛洪13.11Graph Flood
堆目标13.3Heap Goal
混合写屏障13.2Hybrid Write Barrier
存活性13.1Liveness
标记辅助13.4Mark Assist
标记工作者13.4Mark Worker
标记清扫13.1Mark-Sweep
赋值器13.1Mutator
调步器13.3Pacer
比例清扫13.5Proportional Sweep
不规则屏障13.6Ragged Barrier
可达性13.1Reachability
引用计数13.13Reference CountingRC
记忆集13.8Remembered Set
请求假设13.9Request Hypothesis
复活13.10Resurrection
软内存限制13.3Soft Memory Limit
span 队列13.11Span QueuespanQueue
特殊记录13.10Special Recordspecial
栈映射13.7Stack Map
栈对象13.7Stack Object
停止一切13.1Stop the WorldSTW
追踪13.13Tracing
清扫13.5Sweep
清扫代13.5Sweep Generationsweepgen
三色抽象13.1Tricolor Abstraction
三色不变式13.1Tricolor Invariant
弱指针13.10Weak Pointer
写屏障13.2Write BarrierWB/wb

执行栈

术语章节English缩写
连续栈14.1Contiguous Stack
帧指针2.2Frame Pointer
热分裂14.1Hot Split
函数序言2.4Prologue
分段栈14.1Segmented Stack
溢出区2.4Spill Space
栈14Stack
栈拷贝14.4Stack Copy
栈帧2.2Stack Frame
栈增长14.3Stack Growth
警戒线2.4Stack Guard
栈指针2.1Stack PointerSP
栈收缩14.5Stack Shrinking
栈展开器6.3Unwinder

语言特性与编译器

术语章节English缩写
ABI 包装函数2.3ABI Wrapper
别名声明4.3Alias Declaration
应用二进制接口2.3Application Binary InterfaceABI
参数帧15.6Argument Frame
自动分号插入15.1Automatic Semicolon Insertion
基本块3.2Basic Block
边界检查消除15.3Bounds-Check EliminationBCE
装箱4.2Boxing
被调方保存寄存器2.4Callee-saved Register
调用约定2.3Calling Convention
受检异常7.1Checked Exception
闭包6.1Closure
闭包上下文寄存器6.1Closure Context Register
约束8.2Constraint
合约8.2Contract
核心类型8.3Core Type
死代码消除3.4Dead-Code Elimination
延迟位图6.2Defer Bits
延迟语句6.2Defer Statement
去虚化15.3Devirtualization
字典传递4.2Dictionary Passing
动态分派4.2Dynamic Dispatch
错误树7.2Error Tree
逃逸分析15.5Escape Analysis
导出数据3.2Export Data
F-有界多态8.4F-bounded Polymorphism
致命错误6.3Fatal Error
一等公民6First-class Citizen
GC 形状8.1GC Shape
GC 形状模板化8.1GC Shape Stenciling
泛型方法8.4Generic Method
渐进式代码修复4.3Gradual Code Repair
高阶类型8.4Higher-kinded Type
内联树15.3Inline Tree
内联15.3Inlining
内联成本15.3Inlining Cost
接口表4.2Interface Tableitab
内在函数15.2Intrinsic
迭代稳定性15.3Iterative Stability
叶函数9.7Leaf Function
方法表达式6.1Method Expression
方法集4.2Method Set
方法值6.1Method Value
中栈内联15.3Mid-Stack Inlining
单态化8.1Monomorphization
名义类型4.1Nominal Type
不透明错误7.4Opaque Error
开放编码式延迟6.2Open-coded Defer
恐慌6.3Panic
参数标签15.5Parameter Tag
趟15.2Pass
固定15.6Pinning
指针检查器15.4Pointer Checkercheckptr
序言15.6Preamble
按剖面去虚化15.3Profile-Guided Devirtualization
性能制导优化15.3Profile-Guided OptimizationPGO
程序计数器2.1Program CounterPC
伪寄存器2.1Pseudo-register
递归下降15.1Recursive Descent
寄存器2.1Register
重写规则15.2Rewrite Rule
哨兵错误7.4Sentinel Error
分离编译16.7Separate Compilation
源码稳定性15.3Source Stability
特化8.4Specialization
静态单赋值15.2Static Single AssignmentSSA
结构化类型4.2Structural Typing
桩函数15.6Stub
语法树3.2Syntax Tree
词法单元15.1Token
传递内联15.3Transitive Inlining
类型定义4.3Type Definition
类型描述符4.1Type Descriptor_type
类型擦除8.1Type Erasure
类型推断8.3Type Inference
类型参数8.1Type Parameter
类型集8.3Type Set
合一8.3Unification
统一 IR15.2Unified IR
降级3.2Walk
包装函数6.3Wrapper Function
包装7.2Wrapping

数据结构

术语章节English缩写
摊还分析5.1Amortized Analysis
链地址法5.3Chaining
冲突5.3Collision
控制字5.4Control Word
动态数组5.1Dynamic Array
可扩展哈希5.4Extendible Hashing
完整切片表达式5.1Full Slice Expression
哈希洪水5.3Hash Flooding
散列字典树11.7Hash Trie
驻留5.2Interning
惰性删除9.10Lazy Deletion
装载因子5.3Load Factor
锁分段11.7Lock Striping
开放定址法5.3Open Addressing
探测序列5.3Probe Sequence
环形缓冲区10.2Ring Buffer
时间轮9.10Timing Wheel
墓碑5.4Tombstone

模块与工具链

术语章节English缩写
动作3.1Action
动作图3.1Action Graph
辅助向量3.5Auxiliary Vectorauxv
基准测试16.5Benchmark
自举3.3Bootstrapping
气泡16.1Bubble
构建列表17.3Build List
校验和数据库17.4Checksum Database
内容寻址3.1Content Addressing
钻石依赖17.1Diamond Dependency
有向无环图3.6Directed Acyclic GraphDAG
多样化双重编译3.3Diverse Double-CompilingDDC
持久阻塞16.1Durably Blocked
动态链接3.4Dynamic Linking
提前截断3.1Early Cutoff
纪元16.2Epoch
执行追踪器16.3Execution Tracer
不动点3.3Fixed Point
火焰图16.5Flame Graph
飞行记录仪16.3Flight Recorder
模糊测试16.4Fuzzing
HDR 直方图16.6High Dynamic Range Histogram
高保真构建17.3High-Fidelity Build
导入兼容性规则17.2Import Compatibility Rule
语言服务协议16.7Language Server ProtocolLSP
布局3.4Layout
链接器3.4Linker
低保真构建17.1Low-Fidelity Build
Mann–Whitney U 检验16.5Mann–Whitney U Test
Merkle 树3.1Merkle Tree
最小版本选择17.3Minimal Version SelectionMVS
模块图剪枝17.3Module Graph Pruning
目标文件3.4Object File
局部死锁16.1Partial Deadlock
剖面16.5Profile
剖析16.5Profiling
伪版本17.2Pseudo-Version
竞态检测器16.2Race Detector
重建判定3.1Rebuilding
重定位项3.4Relocation
可复现构建3.1Reproducible Build
运行时指标16.6Runtime Metrics
调度延迟16.3Scheduling Latency
种子语料16.4Seed Corpus
语义化导入版本17.2Semantic Import Versioning
语义化版本17.2Semantic Versioningsemver
影子内存16.2Shadow Memory
共享库3.4Shared Library
快照16.7Snapshot
静态链接3.4Static Linking
静态锁排序16.1Static Lock Ranking
子测试16.4Subtest
符号3.4Symbol
符号解析3.4Symbol Resolution
表驱动测试16.4Table-Driven Test
拓扑序3.6Topological Order
拓扑排序3.6Topological Sort
透明日志17.4Transparent Log
首次使用时信任17.4Trust on First UseTOFU
用户标注16.3User Annotation
向量时钟16.2Vector Clock
等待图16.1Wait-for Graph

异构计算与 AI

术语章节English缩写
算术强度18.4Arithmetic Intensity
自回归20.3Autoregressive
背压20.3Backpressure
批处理19.1Batching
字节对编码20.2Byte Pair EncodingBPE
命令缓冲19.1Command Buffer
连续批处理20.3Continuous Batching
驱动 API18.1CUDA Driver API
运行时 API18.1CUDA Runtime API
当前上下文19.2Current Context
决策点21.2Decision Point
解码20.3Decode
绘制调用19.1Draw Call
易并行19.3Embarrassingly Parallel
显式 API19.1Explicit API
外部同步19.1External Synchronization
extra M18.2Extra M
固定功能19.1Fixed-Function
图捕获18.1Graph Capture
运行框架21.1Harness
宿主21.2Host
实例化19.1Instancing
迭代级调度20.3Iteration-Level Scheduling
KV 缓存20.1KV Cache
启动开销18.1Launch Overhead
主线程19.2Main Thread
Model Context Protocol21.2Model Context ProtocolMCP
细腰21.2Narrow Waist
页锁定内存18.3Page-Locked Memory
预填充20.3Prefill
预乘 alpha19.4Premultiplied Alpha
量化20.2Quantization
渲染包19.4Render Bundle
渲染管线19.1Rendering Pipeline
Roofline 模型18.4Roofline Model
选择性批处理20.3Selective Batching
着色器19.1Shader
单指令多线程18.4Single Instruction, Multiple ThreadsSIMT
软件渲染19.3Software Rendering
流18.1Stream
步长20.2Stride
桩模型21.1Stub Model
线程亲和19.2Thread Affinity
分块19.3Tiling
首词元时间20.3Time to First TokenTTFT
词元20.2Token
分词器20.2Tokenizer
统一内存18.3Unified Memory
工作流21.1Workflow