Simon Marlow <[EMAIL PROTECTED]> wrote, > > Simon Marlow told that addFinalizer is unsafe. The object can be > > silently reboxed and then the finalizer can fire much earlier anyway. > > I forgot to mention that addFinalizer on an Addr is unsafe for another > reason: the Addr is unboxed in Haskell before being passed to a foreign > function, which leaves a small window where the boxed Addr is unreferenced > but the Addr# is still required. With touch it would be ok though, wouldn't it? Cheers, Manuel
- RE: Accessing ForeignObj contents from Haskell Simon Marlow
- RE: Accessing ForeignObj contents from Hask... Manuel M. T. Chakravarty
- Re: Accessing ForeignObj contents from ... Marcin 'Qrczak' Kowalczyk
- RE: Accessing ForeignObj contents from Haskell Simon Marlow
- RE: Accessing ForeignObj contents from Haskell Simon Marlow
- RE: Accessing ForeignObj contents from Hask... Manuel M. T. Chakravarty
- Re: Accessing ForeignObj contents from ... Marcin 'Qrczak' Kowalczyk
- Re: Accessing ForeignObj contents f... Manuel M. T. Chakravarty
- RE: Accessing ForeignObj contents from Haskell Simon Marlow
- RE: Accessing ForeignObj contents from Haskell Simon Marlow
- Manuel M. T. Chakravarty