
11 Nov
2009
11 Nov
'09
4:18 p.m.
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