[compiler-rt] [msan] Dynamically grow kNumStackOriginDescrs (PR #92826)
Evgenii Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 15:47:17 PDT 2024
https://github.com/eugenis requested changes to this pull request.
This is not thread safe. I do not think you can do realloc() if you want the mutation to be lock free.
We could simply increase the constant size of the buffer (not perfect, but it is just .bss, not real memory).
We could go with an array of pointers to exponentially increasing allocations (i.e. same as your case, but never deallocate, instead just allocate more and consider the container a logical concatenation of multiple buffers).
https://github.com/llvm/llvm-project/pull/92826
More information about the llvm-commits
mailing list