Groups
Groups
Sign in
Groups
Groups
TopLanguage
Conversations
About
Send feedback
Help
大晚上无聊了,晒个东西
7 views
Skip to first unread message
Windreamer
unread,
Mar 12, 2008, 1:19:33 PM
3/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TopLanguage
本科毕业设计时做的东西
一个policy-based garbage collector
本来野心很大,想做一个支持所有(至少多种吧)垃圾回收算法,可以支持多线程支持多种内存分配器........
然而最终还是只支持了最基本的引用计数和标记清扫,多线程和多内存分配器也没做...只做了个架子
现在工作了,没心情继续了,扔出来晒晒,写的不好别笑话我哦~~~~
主页:
http://code.google.com/p/cppgc/
代码地址:
http://cppgc.googlecode.com/svn/trunk/
Have fun!
Windreamer
unread,
Mar 12, 2008, 1:20:34 PM
3/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TopLanguage
对了编译用的是cmake
测试用了TUT框架
石波
unread,
Mar 12, 2008, 8:10:16 PM
3/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pon...@googlegroups.com
我也一直试图采用cmake编译,可一直没有找到比较系统介绍cmake的资料,ktiware公司倒是有一本《Mastering
Cmake》,不过网上没有电子版,国内也借不到,请教一下Windreamer有什么cmake方面的好资源么?
在 08-3-13,Windreamer<
Windr...@gmail.com
> 写道:
--
潦倒不通世务,愚顽怕读文章
Tony Winslow
unread,
Mar 13, 2008, 12:20:34 AM
3/13/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pon...@googlegroups.com
希望你哪天又无聊的时候把这个东西详细地给大家讲讲,
弄个ppt什么的,呵呵。
Windreamer
unread,
Mar 13, 2008, 3:14:52 AM
3/13/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TopLanguage
唔,对于cmake么,我看到的大概也就是网上的reference而已
不过你可以看看KDE4的实例,启发会大些吧
On 3月13日, 上午8时10分, "石波" <
chinaren.sh...@gmail.com
> wrote:
> 我也一直试图采用cmake编译,可一直没有找到比较系统介绍cmake的资料,ktiware公司倒是有一本《Mastering
> Cmake》,不过网上没有电子版,国内也借不到,请教一下Windreamer有什么cmake方面的好资源么?
>
> 在 08-3-13,Windreamer<
Windrea...@gmail.com
> 写道:
Windreamer
unread,
Mar 13, 2008, 3:20:24 AM
3/13/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TopLanguage
呵呵,没什么技术含量
大致上就是一个智能指针,一个带有托管信息的堆对象,然后把框架拆分为垃圾收集算法/内存分配器/线程安全策略这么几个policy然后再往一块儿
插.
具体到算法,是参考了一片IBM研究院的人的论文,说所有垃圾回收算法都可以看做标记清扫和引用计数的混合体
所以我觉得当一个框架可以同时优秀的支持这两种最基本的垃圾回收算法,支持其他的也就不难了
Reply all
Reply to author
Forward
0 new messages