Skip to content

Clarify that malloc, free etc. are the ones from stdlib.h

Oleg Grenrus requested to merge phadej/ghc:stdlib-malloc into master

The reasoning here is to introduce guarantee that stdlib.h free can be used with Foreign.Marshal.Alloc.malloc etc.

This forbids changing malloc to be somethihg else, like e.g. http://blog.haskell-exists.com/yuras/posts/malloc-free-and-ffi.html. If that is still a plan, then the documentation should explicitly prohibit mixing stdlib.h primitives wit hForeign.Marshall.Alloc ones.


Tracking: #17929

Edited by Hécate Kleidukos

Merge request reports