Handle buffers should be allocated with newPinnedByteArray# always
authorSimon Marlow <simonmar@microsoft.com>
Wed, 25 Jul 2007 09:55:50 +0000 (09:55 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 25 Jul 2007 09:55:50 +0000 (09:55 +0000)
commitcc4dd66d902a438d614f3031c89c7a5d5a555528
tree7dce908b9c5731d940ba64e96488f300339ac81c
parentdd487472345cffd5b440f2e73f3244bf20a49eb7
Handle buffers should be allocated with newPinnedByteArray# always
Not just on Windows.  This change is required because we now use safe
foreign calls for I/O on blocking file descriptors with the threaded
RTS.  Exposed by concio001.thr on MacOS X: MacOS apparently uses
smaller buffers by default, so they weren't being allocated as large
objects.
GHC/Handle.hs