MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / isLargeObject

Function isLargeObject

src/hx/TelemetryTracy.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 std::mutex largeAllocsLock;
19
20 bool isLargeObject(void* ptr)
21 {
22 auto ptrHeader = reinterpret_cast<size_t>(ptr) - sizeof(int);
23 auto flags = *reinterpret_cast<unsigned int*>(ptrHeader);
24
25 return (flags & 0xffff) == 0;
26 }
27}
28
29namespace hx

Callers 1

__hxt_gc_allocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected