MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / has_segment_link

Function has_segment_link

dlmalloc/dlmalloc.c:2153–2161  ·  view source on GitHub ↗

Return true if segment contains a segment link */

Source from the content-addressed store, hash-verified

2151
2152/* Return true if segment contains a segment link */
2153static int has_segment_link(mstate m, msegmentptr ss) {
2154 msegmentptr sp = &m->seg;
2155 for (;;) {
2156 if ((char*)sp >= ss->base && (char*)sp < ss->base + ss->size)
2157 return 1;
2158 if ((sp = sp->next) == 0)
2159 return 0;
2160 }
2161}
2162
2163#ifndef MORECORE_CANNOT_TRIM
2164#define should_trim(M,s) ((s) > (M)->trim_check)

Callers 1

sys_trimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected