启动流程

procresize流程

malloc.go

Memory allocator

sizeclass.go

span按大小区分的 类型定义

mbitmap.go

type and heap bitmaps

mgc.go

Garbage collector (GC)

mcache.go

Per-thread (in Go, per-P) cache for small objects.

central.go

Central free lists

mheap.go

Page heap
type mspan struct

//堆结构
struct mheap {
}

mstats.go

Memory statistics

mfixalloc.go

固定尺寸的堆对象空闲列表分配器,用来管理分配器的存储

runtimt2.go

G status,
sudog represents a g in a wait list, such as for sending/receiving on a channel
type g struct
type m struct
type p struct
type schedt struct

1 初始化内存

入口在 runtime/proc.go
schedinit() -> mallocinit()

参考

内存模型

运行时启动过程

调试go程序

最新文章

  1. 802.11 对于multicast 和 broadcast的处理
  2. cmd.ExecuteReader(CommandBehavior.CloseConnection)
  3. sql动态insert向varchar(MAX)中写入据的问题
  4. include(thinkphp常用内置标签)
  5. xcode6 使用MJRefresh
  6. 向已写好的多行插入sql语句中添加字段和值
  7. (原创)cocos2dx使用jsoncpp的正确姿势
  8. XAF Excel数据导入模块使用说明与源码
  9. Javascript中parentNode的用法
  10. jbpm3.2中jbpm.jpdl.mysql.sql文件运行报错的问题
  11. angualrjs学习总结二(作用域、控制器、过滤器)
  12. 详解SQL Server 2005 Express下的事件探查器
  13. $.ajax和vue-resource实现OAuth
  14. 玩转html5(五)---月球绕着地球转,地球绕着太阳转(canvas实现,同样可以动哦)
  15. delphi XE Datasnap SERVER 在windows 7 下为服务添加描述信息
  16. Leaflet客户端学习笔记
  17. python 初级重点
  18. UVA1153-Keep the Customer Satisfied(贪心)
  19. shell脚本6--循环,比较
  20. confluence中org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed的解决方法

热门文章

  1. 20155227《网络对抗》Exp7 网络欺诈防范
  2. 1、JVM 内存模型+运行时数据区+JVM参数
  3. [Luogu5048] [Ynoi2019模拟赛]Yuno loves sqrt technology III[分块]
  4. 巧用Alt 键
  5. redis见解
  6. shell脚本之基础
  7. Selenium和TestNG
  8. Cloud Native Weekly | Kubernetes 1.13发布
  9. kali linux 安装Nessus
  10. PAT甲级题解-1097. Deduplication on a Linked List (25)-链表的删除操作