gcross: > Hey everyone! Do you have any suggestions for how I might allocate an > aligned block of memory that I can pin while making foreign calls, but > leave unpinned the rest of the time to potentially improve allocation > and garbage collector performance? Or is this even a good idea?
There's no pinned/unpinned memory. You have to pick one. * Use a ForeignPtr to allocate pinned memory (mallocForeignPtr) if you want it mostly poinned. Otherwise, you'll need to copy from unpinned to pinned. -- Don _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe