The Stack Is An Implementation Detail系列文由Eric Lippert所寫 Eric Lippert曾經在微軟工作,部落格為 Fabulous adventures in coding - - - 第一篇的筆記 - - - The Stack Is An Implementation Detail, Part One 第一篇之前看完了但沒做筆記 也許等重看時再補上 - - - 第二篇的筆記 - - - The Stack Is An Implementation Detail, Part Two allocation 分配 deallocation 釋放 heap有holes formal parameter或parameter像是下面舉例的Test函式中的的x: void Test(int x) { ... } 呼叫函式時的x則稱作argument: Test(x) (參考 詞辨:parameter 與 argument 一文) 文章中寫了garbage collection (GC)的運作: "When a garbage collection is performed there are three phases: mark, sweep and compact. In the “mark” phase, we assume that everything in the heap is “dead”. The CLR knows what objects were “guaranteed alive” when the collection started, so those guys are marked as alive. Everything they refer to is marked as alive, and so on, until the transitive closure of live objects are all marked. In the “sweep” phase, all the dead objects are turned into h