mlibc
mlibc copied to clipboard
internal: use libsmarter
See also managarm/libsmarter#4.
libsmarter's make_shared at least seems to call operator new
.
Ah, okay. allocate_shared
should do the same thing as make_shared
but take an explicit allocator. We can just use that, then.
Why do we need this? The PR does not immediately add a usecase for libsmarter so I'm curious what you want to use it for.
IIRC I wanted to use it for refcounting stuff in ld.so so that we don't e.g leak memory when we destroy threads. This PR needs a bit of updating as per my last comment, though
Alright, but then at leas the use-case is clear, thanks.