Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2013 11:25:58 +0100 (BST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        fortran@freebsd.org
Subject:   lazy memory allocation
Message-ID:  <201308231025.r7NAPwNH043266@mech-cluster241.men.bris.ac.uk>

next in thread | raw e-mail | index | archive | help
I've been burned by what's apparently called
"lazy memory allocation" on linux.

My code calls a subroutine that allocates
a coarray. This routine exits fine, with
no error. However, when I tried to initialise
the coarray, I got segfault. On investigation
I discovered that the coarray was not in fact
allocated. In my particular case this was
because there was not enough memory.

Anyway, I was later told that this is an
expected behaviour on linux, with its
"lazy memory allocation".

I'm wondering if FreeBSD also uses
a lazy memory allocation, or we do it differently?

Anton




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308231025.r7NAPwNH043266>