On Wed, 21 Oct 2020 18:28:44 +0300
Konstantin Belousov wrote:
> >
> > kdump with MAP_STACK.
> >
> > 87183 polyimport CALL
> > mmap(0,0x1000,0x3,0x1402,0x,0,0)
> > 87183 polyimport RET mmap -1 errno 22 Invalid argument
> So it is anything but 'insufficient memory' (I suspected
On Wed, Oct 21, 2020 at 06:18:50PM +0300, Nick Kostirya via freebsd-stable
wrote:
> On Wed, 21 Oct 2020 17:16:57 +0300
> Konstantin Belousov wrote:
>
> > On Wed, Oct 21, 2020 at 04:53:11PM +0300, Nick Kostirya via freebsd-stable
> > wrote:
> > > Hello.
> > > I have question about mmap.
> > >
On Wed, 21 Oct 2020 17:16:57 +0300
Konstantin Belousov wrote:
> On Wed, Oct 21, 2020 at 04:53:11PM +0300, Nick Kostirya via freebsd-stable
> wrote:
> > Hello.
> > I have question about mmap.
> >
> > void *OSMem::AllocateDataArea(size_t )
> > {
> > // Round up to an integral number of
On Wed, Oct 21, 2020 at 04:53:11PM +0300, Nick Kostirya via freebsd-stable
wrote:
> Hello.
> I have question about mmap.
>
> void *OSMem::AllocateDataArea(size_t )
> {
> // Round up to an integral number of pages.
> space = (space + pageSize-1) & ~(pageSize-1);
> int fd = -1; // This
Hello.
I have question about mmap.
void *OSMem::AllocateDataArea(size_t )
{
// Round up to an integral number of pages.
space = (space + pageSize-1) & ~(pageSize-1);
int fd = -1; // This value is required by FreeBSD. Linux doesn't care
int flags = MAP_PRIVATE | MAP_ANON;
#ifdef