boubaker issa <[email protected]> writes:
> 
> but why !!
> 

You mean why I am proposing to use a counter? Think about the condition that we 
first allocate 2 pages, then free 1 page, and finally allocate 1 page. In this 
case, the current chunk has no free pages in it, but the flag in scavChunkFlag 
is 0 so the scavenger has to step into the chunk to find out whether there are 
certain page to scavenge. With a free-page counter, the scavenger does not need 
to check this chunk anymore. 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/A23DA699-476C-4047-9AE3-5C17A8B2E97A%40gmail.com.

Reply via email to