Skip to content

Order alloc/free events #1378

Description

@dennypenta

Context:
I use tracy in a zig project and we have allocator as a basic interface.
To support tracy allocations we wrap the allocator which sends events on alloc/free/resize/etc.

Problem:
On linux x86 I found quite a lot of errors "Memory allocation event was reported for an address that is already tracked and not freed".
No leaks found, everything is fine.
Increasing concurrency produces the issue more often.
The issue was fixed adding an explicit mutex to the allocator.
So it feels the events are out of order in multithreading setup.

Questions:

  1. does c++ sdk (server) have a buffering and reordering of the events?
  2. can we do it on the GUI side (client) in order not to duplicate it for every sdk?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions