Stream: helpdesk (published)

Topic: Mysterious allocs despite no dynamic dispatch on inspection


view this post on Zulip Brian Chen (Oct 02 2023 at 02:50):

I've been trying to figure out this mysterious issue posted today on Discourse. A user is seeing allocations, yet using @code_* and Cthulhu don't turn up any calls which could be responsible for so many allocations. Using the allocation profiler wasn't much help either: it showed a bunch of allocations seemingly related to tuple indexing and dynamic dispatch (e.g. apply stuff), but I can't tell why those are happening because I can't coax out IR which shows such calls.

view this post on Zulip Brian Chen (Oct 02 2023 at 02:51):

More vexing is that trying to reduce the MWE to use lower-level library functions makes the allocations go away. Normally that would make me suspect something like inlining, but I have no way to test that because again the IR looks fine...


Last updated: Dec 28 2024 at 04:38 UTC