GO进程调度相关源码学习
2024-10-19 12:45:15
启动流程
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()
参考
- http://blog.csdn.net/zhonglinzhang/article/details/74626412
- https://zhuanlan.zhihu.com/p/27807169
- http://www.cnblogs.com/zkweb/p/7880099.html
- TLS: http://www.cppblog.com/Tim/archive/2012/07/04/181018.html
- http://blog.jobbole.com/100212/
- https://studygolang.com/articles/11904 - 垃圾回收
内存模型
运行时启动过程
调试go程序
最新文章
- 802.11 对于multicast 和 broadcast的处理
- cmd.ExecuteReader(CommandBehavior.CloseConnection)
- sql动态insert向varchar(MAX)中写入据的问题
- include(thinkphp常用内置标签)
- xcode6 使用MJRefresh
- 向已写好的多行插入sql语句中添加字段和值
- (原创)cocos2dx使用jsoncpp的正确姿势
- XAF Excel数据导入模块使用说明与源码
- Javascript中parentNode的用法
- jbpm3.2中jbpm.jpdl.mysql.sql文件运行报错的问题
- angualrjs学习总结二(作用域、控制器、过滤器)
- 详解SQL Server 2005 Express下的事件探查器
- $.ajax和vue-resource实现OAuth
- 玩转html5(五)---月球绕着地球转,地球绕着太阳转(canvas实现,同样可以动哦)
- delphi XE Datasnap SERVER 在windows 7 下为服务添加描述信息
- Leaflet客户端学习笔记
- python 初级重点
- UVA1153-Keep the Customer Satisfied(贪心)
- shell脚本6--循环,比较
- confluence中org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed的解决方法
热门文章
- 20155227《网络对抗》Exp7 网络欺诈防范
- 1、JVM 内存模型+运行时数据区+JVM参数
- [Luogu5048] [Ynoi2019模拟赛]Yuno loves sqrt technology III[分块]
- 巧用Alt 键
- redis见解
- shell脚本之基础
- Selenium和TestNG
- Cloud Native Weekly | Kubernetes 1.13发布
- kali linux 安装Nessus
- PAT甲级题解-1097. Deduplication on a Linked List (25)-链表的删除操作