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

Function rpc_free

system/lib/llvm-libc/src/__support/GPU/allocator.cpp:64–70  ·  view source on GitHub ↗

Deallocates the associated system memory.

Source from the content-addressed store, hash-verified

62
63// Deallocates the associated system memory.
64static void rpc_free(void *ptr) {
65 rpc::Client::Port port = rpc::client.open<LIBC_FREE>();
66 port.send([=](rpc::Buffer *buffer, uint32_t) {
67 buffer->data[0] = reinterpret_cast<uintptr_t>(ptr);
68 });
69 port.close();
70}
71
72// Convert a potentially disjoint bitmask into an increasing integer per-lane
73// for use with indexing between gpu lanes.

Callers 2

unlockMethod · 0.85
deallocateFunction · 0.85

Calls 2

sendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected