| 65 | void __hxt_gc_new(hx::StackContext* stack, void* obj, int inSize, const char* name) { } |
| 66 | |
| 67 | void __hxt_gc_alloc(void* obj, int inSize) |
| 68 | { |
| 69 | #ifdef HXCPP_TRACY_MEMORY |
| 70 | if (isLargeObject(obj)) |
| 71 | { |
| 72 | std::lock_guard<std::mutex> lock(largeAllocsLock); |
| 73 | |
| 74 | largeAllocs.push(obj); |
| 75 | |
| 76 | TracyAllocN(obj, inSize, lohName); |
| 77 | } |
| 78 | else |
| 79 | { |
| 80 | hx::StackContext::getCurrent()->mTelemetry->smallAllocs.push(obj); |
| 81 | |
| 82 | TracyAllocN(obj, inSize, sohName); |
| 83 | } |
| 84 | #endif |
| 85 | } |
| 86 | |
| 87 | void __hxt_gc_free_large(void* obj) |
| 88 | { |
nothing calls this directly
no test coverage detected