MCPcopy Create free account
hub / github.com/boostorg/build / alloc_hdr

Function alloc_hdr

v2/engine/boehm_gc/headers.c:161–172  ·  view source on GitHub ↗

Return an uninitialized header */

Source from the content-addressed store, hash-verified

159
160/* Return an uninitialized header */
161static hdr * alloc_hdr(void)
162{
163 register hdr * result;
164
165 if (hdr_free_list == 0) {
166 result = (hdr *) GC_scratch_alloc((word)(sizeof(hdr)));
167 } else {
168 result = hdr_free_list;
169 hdr_free_list = (hdr *) (result -> hb_next);
170 }
171 return(result);
172}
173
174static void free_hdr(hdr * hhdr)
175{

Callers 1

GC_install_headerFunction · 0.85

Calls 1

GC_scratch_allocFunction · 0.85

Tested by

no test coverage detected