[libcxx-commits] [PATCH] D100219: [libcxx] [test] Skip alloc counter checks for operations within the libc++ DLL
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Apr 30 22:34:22 PDT 2021
mstorsjo added a comment.
In D100219#2730479 <https://reviews.llvm.org/D100219#2730479>, @ldionne wrote:
> Thanks for the explanation. That sounds like a bug in the object format, basically, cause that means we can't implement C++ properly (which requires being able to override `operator new`).
Yeah I guess so.
The same effect also means that one process can have multiple copies of the C runtime (there are, historically, multiple different ones that can be linked dynamically, and each DLL can also have a private copy of the C runtime linked in statically). Then one has to take care that the same runtime that e.g. allocated memory with malloc also frees it, and e.g. calls to functions like open/write/close are confined to the same instance of the runtime.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100219/new/
https://reviews.llvm.org/D100219
More information about the libcxx-commits
mailing list