Cool, thanks! Dave Barach (dbarach) <dbar...@cisco.com> 于2020年4月3日周五 下午9:11写道:
> Data segment, .bss segment, stack segment addresses to name a few. > Although it doesn’t happen every day, it’s almost too easy to free an > object which wasn’t allocated. > > > > D > > > > *From:* vpp-dev@lists.fd.io <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_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 > ms->least_addr + ms->footprint means here? > Btw, just saw least_addr updated during allocation, would > release_unused_segments make the least_addr out of date and dangeous? > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15983): https://lists.fd.io/g/vpp-dev/message/15983 Mute This Topic: https://lists.fd.io/mt/72743648/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-