MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / segment_holding

Function segment_holding

system/lib/dlmalloc.c:2782–2790  ·  view source on GitHub ↗

Return segment holding given address */

Source from the content-addressed store, hash-verified

2780
2781/* Return segment holding given address */
2782static msegmentptr segment_holding(mstate m, char* addr) {
2783 msegmentptr sp = &m->seg;
2784 for (;;) {
2785 if (addr >= sp->base && addr < sp->base + sp->size)
2786 return sp;
2787 if ((sp = sp->next) == 0)
2788 return 0;
2789 }
2790}
2791
2792/* Return true if segment contains a segment link */
2793static int has_segment_link(mstate m, msegmentptr ss) {

Callers 4

do_check_top_chunkFunction · 0.85
add_segmentFunction · 0.85
sys_allocFunction · 0.85
sys_trimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected