Note though that you can't put pointers to Go heap objects into mmap'd memory, as the garbage collector can't see them.
On Monday, February 12, 2018 at 8:37:46 AM UTC-8, Jan Mercl wrote: > > On Mon, Feb 12, 2018 at 5:28 PM Juliusz Chroboczek <[email protected] > <javascript:>> wrote: > > > Is it okay to use syscall.Mmap to allocate large amounts of memory, or > > will it conflict with Go's memory allocator? > > From my experience it's ok. > > Shameless plug: You might want to have a look at a > https://github.com/cznic/memory. > > -- > > -j > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
