施儒宏

@twplrh

Joined on Mar 18, 2018

  • [ ] Resume [ ] Autobiography [ ] Transcripts & Diploma Projects is listed in resume. But no pictures, no details. Sorry that I have only a android phone these days. Question: Do you consider yo pursue MS degree in coming 3 year? Ans: Yes, but It depends on work circumstances and salary.
     Like  Bookmark
  • # 期末報告:GC contributed by <`TWPLrh`, `chengWei1123`> ## Goal 重做 [gc](https://hackmd.io/@sysprog/SkZpf5HiE?type=view) 作業,符合所有指定要求並彙整 [其他同學的成果](https://hackmd.io/@sysprog/S1Syl5RiV?type=view) ## Mark and Sweep 的實作 ### 概念 Mark and Sweep 分為 mark 和 Sweep 兩個階段 - Mark 階段: 從 root set( stack & globals list )遞迴地拜訪可到達的記憶體區段,並將之標記 - Sweep 階段: 拜訪所有記憶體區段( ptr_map 中所有節點 ),並將沒被標記到的從 heap 中釋放 如下圖 ![](https://i.imgur.com/phxlQhD.gif) ### 程式實作 #### 資料結構 ```c=1 struct __gc_ptr { uintptr_t start; s
     Like  Bookmark