[GHC] #7718: ios patch no 8: adjustor pools
GHC
cvs-ghc at haskell.org
Fri May 10 12:22:38 CEST 2013
#7718: ios patch no 8: adjustor pools
--------------------------------+-------------------------------------------
Reporter: StephenBlackheath | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Os: Other | Architecture: arm
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: 7724 | Related:
--------------------------------+-------------------------------------------
Comment(by simonmar):
Ok, so the ARM version has an assumption that `ffi_closure_alloc()`
returns an `ffi_closure*`, which isn't necessarily the case on the other
architectures, and in the RTS we're assuming that we can write the memory
it returns.
Another way to fix this seems to be to require `freeExec()` take the
writable address, and make it the caller's responsibility to store the
writable address somewhere. When we're using `libffi` we could store the
writable address after the `ffi_closure`, for example.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7718#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list