Richie

Sometimes at night when I look up at the stars, and see the whole sky just laid out there, don't you think I ain't remembering it all. I still got dreams like anybody else, and ever so often, I am thinking about how things might of been. And then, all of a sudden, I'm forty, fifty, sixty years old, you know?

2009年9月1日 #

.NET内存管理、垃圾回收

摘要: 1.Stack和Heap每个线程对应一个stack,线程创建的时候CLR为其创建这个stack,stack主要作用是记录函数的执行情况。值类型变量(函数的参数、局部变量等非成员变量)都分配在stack中,引用类型的对象分配在heap中,在stack中保存heap对象的引用指针。GC只负责heap对象的释放,heap内存空间管理Heap内存分配 除去pinned object等影响,heap中的内存... 阅读全文

posted @ 2009-09-01 20:44 riccc 阅读(12965) 评论(41) 推荐(23) 编辑

导航