
#9806: malloc and mallocArray ignore Storable alignment requirements -------------------------------------+------------------------------------- Reporter: ekmett | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: Core Libraries | Version: 7.8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: #8627 | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Yuras): Sorry my broken Engligh. Yes, `posix_memalign` requires `free` for deallocation, but I was trying to say, that we have to use other API on platforms that don't have `posix_memalign`. E.g. `pagealign_alloc` requires `pagealign_free`. If we provide strong alignment guarantees for `malloc`, then we should be able to implement that on all current and future platforms. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9806#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler