On Mon, Jan 14, 2013 at 11:43:44AM +1300, Robert O'Callahan wrote:
> I need a big read-only buffer full of zeroes. On Linux I could mmap
> /dev/zero read-only, and something similar on Windows/Mac I'm sure, but do
> we already have code for that, or better yet something like that already
> mapped into memory?

You could just use calloc(). Jemalloc will do the appropriate thing.

Mike
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to