Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Replacement of std::malloc #6

Open
10 tasks done
mitinarseny opened this issue Oct 31, 2020 · 0 comments · May be fixed by #15
Open
10 tasks done

Replacement of std::malloc #6

mitinarseny opened this issue Oct 31, 2020 · 0 comments · May be fixed by #15

Comments

@mitinarseny
Copy link
Contributor

mitinarseny commented Oct 31, 2020

Following functions are needed to replace std::malloc:

  • malloc
  • free
  • calloc
  • realloc
  • aligned_alloc
  • malloc_usable_size
  • memalign
  • posix_memalign
  • pvalloc
  • valloc

Additionally, we should check if it is necessary to overload C++ new and delete operators (#4).

Other programs that are dynamically linked to libstdc++ may be overrode to link with our custom malloc implementation with help of dynamic override.

@Astrarog Astrarog linked a pull request Dec 8, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant