MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / stackful_free

Method stackful_free

thread/thread.cpp:251–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 void stackful_free(void* ptr) {
252 assert(((uint64_t)ptr) < ((uint64_t)stackful_alloc_top));
253 auto rc = stackful_alloc_top - sizeof(stack_alloc_header);
254 (void)rc;
255 assert(ptr == (rc - ((stack_alloc_header*)rc)->size));
256 stackful_alloc_top = (char*)ptr;
257 }
258
259 void init_main_thread_stack() {
260#ifdef __APPLE__

Callers 1

stackful_freeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected