Steve Fink (2014-11-04T20:45:15.000Z)
d at domenic.me (2014-11-18T23:20:40.634Z)
On 11/04/2014 11:08 AM, Brendan Eich wrote: > ArrayBuffer.transfer > (https://gist.github.com/andhow/95fb9e49996615764eff) is an ES7 stage > 0 proposal, needs to move to stage 1 soon. It enables decommitting > memory. I'm not sure we're talking about the same thing. I'm talking about what would be madvise(MADV_DONTNEED) on POSIX or VirtualAlloc(MEM_RESET) on Windows. Er... actually, I think it would be MEM_RESET followed by MEM_COMMIT to get the zero-filling while still releasing the physical pages. Unless there's some tricky way of using ArrayBuffer.transfer to signal that memory can be decommitted, but I don't see it.