#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 |
-------------------------------+--------------------------------------------
Changes (by simonmar):
* difficulty: => Unknown
Comment:
Thanks for the patch. As it stands, this will waste memory when the
required alignment is <= 8 bytes, since `allocaBytes` and `mallocBytes`
both always return 8-byte aligned memory. Could you modify the patch to
take that into account?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2917#comment:2>
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