Thanks a lot, Robin.
I've done what in the tutorial several months ago. There is something different in Jikes RVM 3.1.2:
■Building a Mark-Sweep Collector
1. Free-list Allocation: In Tutorial, initialize msSpace, "DEFAULT_POLL_FREQUENCY" can not be resolved to a variable.
2. Mark-sweep Collection: In Tutorial, "getPagesRequired()" is not defined in StopTheWorld, maybe "getPagesUsed()"?
3. Mark-sweep Collection: In TutorialCollector, "remove methods implement by StopTheWorldCollector: collect()..." no such methods found.
■Building a Hybrid Collector
1. Adding a Copying Nursery: In Tutorial, initialize nurserySpace, "DEFAULT_POLL_FREQUENCY" can not be resolved to a variable.
2. Adding a Copying Nursery: In Tutorial, "getPagesRequired()" is not defined in StopTheWorld.
3. Make necessary changes to TutorialTraceLocal: "precopyObject(ObjectReference object)" and "willNotMoveInConcurrentCollection(ObjectReference object)" are not defined in the superclass(extends TraceLocal), remove "@override"or remove the methods?
The GC which I want to build is a hybrid collector. Run the semispace-copy as the main policy and the mark-compact as a backup policy in the same space. The ToSpace can be smaller than the FromSpace, if the ToSpace is full during a collection, compact the live objects still left in the FromSpace(which should be copied but failed). After a GC, filp the FromSpace and ToSpace, adjust the size of them.
Which GCPlan can be reused for my GC? Which space to use or I have to write one? How to define FromSpace and ToSpace in the same space, flip them and adjust their size?
Any suggestion? Thank you.
________________________________
发件人: Robin Garner <[email protected]>
收件人: [email protected]; "General discussion of Jikes RVM design, implementation, issues, and plans" <[email protected]>
抄送: [email protected]
发送日期: 2013年7月30日, 星期二, 8:11 上午
主题: Re: [rvm-research] About MMTk Guide / How to construct collectors
On 29/07/13 19:03, [email protected] wrote:
> Hello All,
>
> I'm a student and it's my first time to use Jikes RVM with MMTk.
> However, when I read the "MMTk: The Memory Manager Toolkit"(September
> 28, 2006 & July 6, 2007), I found it's almost blank from Chapt3 Plans
> to Chapt6 Portability. Is there a full version of MMTk Guide?
Nope. That's all I had time to write. Contributions are welcome ;)
There's an updated version of the tutorial on jikesrvm.org, and "Anatomy
of a Garbage Collector" on the website also describes how a GC plan fits
together.
http://docs.codehaus.org/display/RVM/MMTk+Tutorial
http://jikesrvm.org/Memory+Allocation+in+JikesRVM
http://docs.codehaus.org/display/RVM/Anatomy+of+a+Garbage+Collector
http://docs.codehaus.org/display/RVM/Scanning+Objects+in+JikesRVM
> Now I'm reading the source codes of Jikes RVM 3.1.2 to see if I can
> get any ideas about how to construct collectors in MMTk. Any
> suggestions for me, which package should I read?
Run through the tutorial. If there are bits that need updating, let me
know. This should give you an idea of how the main building blocks in a
Plan fit together.
Then its best to start with something close to the GC you want to
build. Beyond that, if you let us know what you're building I might be
able to point you in the right direction.
cheers,
Robin
> Thanks for any help.
> Best Regards.
>
>
> Chen Hao
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Jikesrvm-researchers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.