#2917: alloca and allocaArray do not respect alignment
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (FFI) | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: x86 |
-------------------------------+--------------------------------------------
Comment (by simonmar):
Yes, good point. The `allocaBytes` version is fine, btw (except that it
should avoid wasting memory when alignement <= 8). `posix_memalign()` is
the only way I know to allocate aligned memory from the OS.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2917#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs