Re: [vpp-dev] Naive question about mspace_is_heap_object

2020-04-07 Thread Peng Xia
to free an >> object which wasn’t allocated. >> >> >> >> D >> >> >> >> *From:* vpp-dev@lists.fd.io *On Behalf Of * >> xiapengli...@gmail.com >> *Sent:* Friday, April 3, 2020 2:57 AM >> *To:* vpp-dev@lists.fd.io >> *Sub

Re: [vpp-dev] Naive question about mspace_is_heap_object

2020-04-03 Thread Peng Xia
* vpp-dev@lists.fd.io *On Behalf Of * > xiapengli...@gmail.com > *Sent:* Friday, April 3, 2020 2:57 AM > *To:* vpp-dev@lists.fd.io > *Subject:* [vpp-dev] Naive question about mspace_is_heap_object > > > > Hi experts, > Curious about what the following lines did in mspace

Re: [vpp-dev] Naive question about mspace_is_heap_object

2020-04-03 Thread Dave Barach via lists.fd.io
Subject: [vpp-dev] Naive question about mspace_is_heap_object Hi experts, Curious about what the following lines did in mspace_is_heap_object: if (pp > ms->least_addr && pp <= ms->least_addr + ms->footprint) return 1 What kind of memory allocations would fall out o

[vpp-dev] Naive question about mspace_is_heap_object

2020-04-03 Thread xiapenglilai
Hi experts, Curious about what the following lines did in mspace_is_heap_object: if (pp > ms->least_addr && pp <= ms->least_addr + ms->footprint) return 1 What kind of memory allocations would fall out of the existing segments of mspace as we have disabled mmap_alloc? And what exactly