[rvm-research] Modifying GenMutator

View: New views
1 Messages — Rating Filter:   Alert me  

[rvm-research] Modifying GenMutator

by Dingwen Yuan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I want to modify GenMutator to get to know which objects in the
nursery are dead and which are alive after gc. And I noticed
CopyLocal.linearScan() can help me to do it. However, the
nursery.rebind(Gen.nurserySpace) has reset everything. Is it safe to
move this line to the block "phaseId == Gen.RELEASE", in this way I
think I can do some useful scans.

GenMutator.java
@NoInline
  public void collectionPhase(short phaseId, boolean primary) {

    if (phaseId == Gen.PREPARE) {
       nursery.rebind(Gen.nurserySpace);
      ...
    }

    if (phaseId == Gen.RELEASE) {
    ....
    }
    super.collectionPhase(phaseId, primary);
  }

Thanks!

Dingwen

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers