SUMM: perl5 out of memory signal?

From: Bob Parkinson <rwplists_at_omni.ac.uk>
Date: Mon, 21 Sep 1998 15:39:45 +0100 (BST)

Thanks To Sam and Love.

There is no such thing as an out of memory signal. THe msg. "Out of
memory!" is coming from perl after a malloc fails.

Need another way to handle this error then. Back to the drawing board.

Thanks,

Bob
---
Sam Nelson
This probably isn't a signal, but a failure of one of the brk()/sbrk()
system
calls done underneath a `malloc()' (or something like that) to extend the
process data segment.  There isn't a signal that relates directly to
running
out of data segment.
Love
perl does probably rightly check is return-value from malloc(3), and fail
when malloc does (search for "Out of memory in the perl source[1]).
[1]
hummel:/src/languages/perl/5.004_01$ grep "Out of memory" *.c
malloc.c:       die("Out of memory during request for %i bytes", size);
malloc.c:       die("Out of memory!");          /* croak may eat too much
memory. */
malloc.c:                   PerlIO_puts(PerlIO_stderr(),"Out of
memory!\n");
Received on Mon Sep 21 1998 - 14:39:31 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT