mrnorman/YAKL

Use a pool for host allocations, and make "Managed" if managed memory is turned on

mrnorman opened this issue · 1 comments

Use a pool for host allocations, and make "Managed" if managed memory is turned on

I don't think this is ultimately a good idea. One of the benefits of having a memHost space is that you can wrap any arbitrary class by allocating with the new keyword. To use a pool, I'd have to use placement new, which has potential issues with classes with alignment requirements. I'm not sure I want to open up that can of worms, at least not for now.