Extend HeapAllocationRecord to record allocation thread id, print thread id in memory allocation stack trace.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| compiler-rt/lib/hwasan/hwasan_allocator.h | ||
|---|---|---|
| 120 | thread id is part of alloc_context_id | |
| compiler-rt/lib/hwasan/hwasan_allocator.h | ||
|---|---|---|
| 120 | Yes, thread id is part of alloc_context_id stored as atomic_uint64_t alloc_context_id in Metadata, u32 alloc_context_id stored in HeapAllocationRecord is without thread id. | |
| compiler-rt/lib/hwasan/hwasan_allocator.cpp | ||
|---|---|---|
| 359 | @eugenis Unrelated to the patch but seems Deallocate must be called after ha->push | |
| compiler-rt/lib/hwasan/hwasan_allocator.h | ||
| 117–118 | I guess you just resolved TODO, so please remove | |
| 120 | missaligned, please clang-format | |
| 120 |
thanks for pointing to this, I didn't noticed that first time | |
| compiler-rt/lib/hwasan/hwasan_report.cpp | ||
| 334 | u32 should be %u | |
| 476 | ||
| 481 | ||
| compiler-rt/lib/hwasan/hwasan_allocator.h | ||
|---|---|---|
| 120 | clang-format complained about keeping this aligned | |
I guess you just resolved TODO, so please remove