Open Lehirt opened 1 year ago
明确基本流程:
_panic.recovered = true
_defer.sp
_defer.pc
panic
数据结构:
_defer.started
_defer._panic
_panic.recovered
明确基本流程:
_panic.recovered = true
,则从panic链表中删除该被恢复的 panic ,defer函数自己也会从链表中移除,但会保存_defer.sp
、_defer.pc
,用于跳出panic
流程。数据结构:
_defer.started
,_defer._panic
。_panic.recovered