[Xorp-hackers] valgrind: selector.cc: Reading free'd memory
Ben Greear
greearb at candelatech.com
Sat Oct 3 08:43:26 PDT 2009
Bruce Simpson wrote:
> Ben Greear wrote:
>>
>> We have to ensure that the Node memory can never be deleted while
>> that method
>> is running. My work-around solves this for any sane amount of
>> file-descriptors
>> (up to 1024).
>
> I've committed the part of the change which preallocates
> _selector_entries, but limited it to 256 file descriptors to keep the
> memory wastage down. thanks!
Hopefully no one will ever get a descriptor bigger than 256! It should
certainly be better than before, but I'm
going to leave my tree at 1024 since I open a descriptor per interface
and sometimes run lots of protocols.
Thanks,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Xorp-hackers
mailing list