MCPcopy Index your code
hub / github.com/dcodeIO/webassembly / segment_holding

Function segment_holding

lib/dlmalloc/malloc.c:2696–2704  ·  view source on GitHub ↗

Return segment holding given address */

Source from the content-addressed store, hash-verified

2694
2695/* Return segment holding given address */
2696static msegmentptr segment_holding(mstate m, char* addr) {
2697 msegmentptr sp = &m->seg;
2698 for (;;) {
2699 if (addr >= sp->base && addr < sp->base + sp->size)
2700 return sp;
2701 if ((sp = sp->next) == 0)
2702 return 0;
2703 }
2704}
2705
2706/* Return true if segment contains a segment link */
2707static 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