Lidong Yan <[email protected]> writes:
> 
> Ian Lance Taylor <[email protected]> writes:
>> 
>> Thanks, I think you're right.
>> 
>> I suppose I'm not sure why a counter would help very much in practice.
>> The scenario in which it helps doesn't seem like a common one. But you
>> could try it and see if it helps with any benchmarks.
> 
> I agree, counter may not help very much but will not hurt much either I 
> suppose.
> Besides I think it is more precise than 1-bit flag. I will make some 
> experiments
> on benchmarks.
> 

When we allocate some pages in a chunk, it is possible we would allocate new 
pages
rather than freed pages in this chunk (e.g. we want 10 contiguous pages and we 
only
have two freed pages). So I don’t think I can calculate a value for freed-pages 
counter
after an allocation. And I think that why go use an imprecise 1-bit flag here.

Lidong

-- 
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/9662E00E-2EC6-4E0D-BABF-568CF51D6DD1%40gmail.com.

Reply via email to