2021-07-31 –, TR209
Language: 漢語
Go memory allocation and deallocation
hackmd url:https://hackmd.io/@coscup/HyHyr6PR_/%2F%40coscup%2FH1FpVTvA_
slido url: Abstract:In the modern programming language, the memory usually separated into stack and heap. The heap size changes during runtime. I want to introduce the mechanism and strategy Go used to allocate new memory and deallocate the memory. Start from tcallocator component, mcache, mcentral, and mheap and how they interact with each other when the allocation happened. The garbage collector is responsible for deallocation. How to reuse the memory in the heap? When should we release the memory to OS?
Talk Length:30
English Abstract:In the modern programming language, the memory usually separated into stack and heap. The heap size changes during runtime. I want to introduce the mechanism and strategy Go used to allocate new memory and deallocate the memory. Start from tcallocator component, mcache, mcentral, and mheap and how they interact with each other when the allocation happened. The garbage collector is responsible for deallocation. How to reuse the memory in the heap? When should we release the memory to OS?
您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件): yes Difficulty:中階