« Return to Thread: [rvm-research] Find holes in a block of SegregatedFreeListSpace

Re: [rvm-research] Find holes in a block of SegregatedFreeListSpace

by Steve Blackburn :: Rate this Message:

Reply to Author | View in Thread

Hi Dingwen,

Sorry I have not replied earlier.

I'm afraid the specifics of the surrounding code are not at the front  
of my mind right now and it's pretty tough to debug your code with so  
little context.  Can you be a bit more specific about how it is failing?

For what it's worth, I strongly recommend the use of assertions,  
particularly in GC code---figure out what your invariants and  
preconditions are and then thrown assertions in liberally to ensure  
your assumptions are holding true.   The assertions cost nothing in a  
production build (they are turned off and removed statically---no  
runtime checks).

--Steve

On 10/06/2009, at 6:32 PM, Dingwen Yuan wrote:

> Sorry, I hit a space and the above mail was mistakenly sent. Again,  
> the code is like this:
>
> @Inline
> private void auditBlock (Address block, int sizeClass,
>             Extent blockSize) {
>
>       Extent cellBytes = Extent.fromIntSignExtend(
> cellSize[sizeClass]);
>       Address cursor = block.plus(blockHeaderSize[sizeClass]);
>       Address end = block.plus(blockSize);
>
>       while(cursor.LT(end)) {
>         ObjectReference current =  
> VM.objectModel.getObjectFromStartAddress(cursor);
>         if (current == null || !this.isCellLive(current)) {
>                holes++;
>         }
>         cursor = cursor.plus(cellBytes);
>      }
>   }
>
> I call this function to scan blocks in "available list" at the  
> RELEASE phase of GC directly after space.release() was called. But I  
> found there should be some bug in it, but cannot tell where. Could  
> anyone help me with this?
>
> Thanks in advance.
>
> Dingwen
>
> TU Darmstadt  
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects_______________________________________________
> Jikesrvm-researchers mailing list
> Jikesrvm-researchers@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

 « Return to Thread: [rvm-research] Find holes in a block of SegregatedFreeListSpace