COSCUP x RubyConf TW 2021

Go memory allocation and deallocation
年7月31日, 12:00–12:30 (Asia/Taipei), TR209
語言: 漢語


英文演講標題

Go memory allocation and deallocation

演講長度

30

英文演講摘要

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?

您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件) – True 內容難易度

中階

演講摘要

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?

hackmd url

https://hackmd.io/@coscup/HyHyr6PR_/%2F%40coscup%2FH1FpVTvA_

slido url

https://app.sli.do/event/wvnbblkl