Exactly. I don't know why I was misunderstood because topic title is "How 
to allocate memory from OS..." and in the first message I mentioned 
VirtualAllloc and mmap is used to obtain memory from os instead of sbrk in 
most unix clibs. About discussion - I think patch implementing syscall.Mmap 
on windows will be better. But I'm unsure that this patch will be accepted.

понедельник, 11 июля 2016 г., 20:43:32 UTC+3 пользователь Konstantin 
Khomoutov написал:
>
> On Mon, 11 Jul 2016 09:11:14 -0700 (PDT) 
> sphil...@gmail.com <javascript:> wrote: 
>
> > Thank for answer but I'm already implemented portable unmanaged 
> > memory pool 
> > (https://github.com/ardente/goal/blob/master/gut/mempool.go). I'm 
> > just looking for standard direct analogue (incliding mapping of fd 
> > -1) of unix's syscall.Mmap for windows. Looks like there is none. 
> > There is some rationale behind this or just lack of time/interest? 
>
> Uh, since everyone answered to this thread appear to misunderstand your 
> question in one way or another let me do another stab: do I understand 
> correctly that you use the word "standard" to actually refer to a 
> package from the Go standard library or from its set of experimental 
> packages? 
>
> If yes, then I think the answer would be no, Go does not appear to have 
> one.  I don't know the reason.  If you feel like creating a package for 
> the golang.org/x consider asking on the golang-dev mailing list for 
> further discussion of this idea. 
>

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to