Commit d917e7d
authored
[hip] Fixes a race in allocator_free_async. (#19541)
If we freed a buffer with hipFree and it was immediately re-used before
the call to IREE_TRACE_FREE_NAMED,
we could end up in a case where tracy would see the same buffer
allocated twice (and subsequently crash)
Signed-off-by: Andrew Woloszyn <[email protected]>1 parent 9b8bba8 commit d917e7d
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | 695 | | |
700 | 696 | | |
701 | 697 | | |
702 | 698 | | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
703 | 704 | | |
704 | 705 | | |
705 | 706 | | |
| |||
0 commit comments