Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e3d62627d1d1aab7ab1be2dd7f65a872 > files > 275

ecl-10.4.1-1.fc14.x86_64.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>5.4.&#160;Memory Conditions</title><link rel="stylesheet" href="ecl.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="The ECL manual"><link rel="up" href="ch20.html" title="Chapter&#160;5.&#160;Memory Management"><link rel="prev" href="ch20s03.html" title="5.3.&#160;Memory limits"><link rel="next" href="ch20s05.html" title="5.5.&#160;Finalization"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">5.4.&#160;Memory Conditions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch20s03.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;5.&#160;Memory Management</th><td width="20%" align="right">&#160;<a accesskey="n" href="ch20s05.html">Next</a></td></tr></table><hr></div><div class="section" title="5.4.&#160;Memory Conditions"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ext.memory.conditions"></a>5.4.&#160;Memory Conditions</h2></div></div></div><p>When <span class="application">ECL</span> surpasses or approaches the memory limits it will signal a
   Common Lisp condition. There are two types of conditions, <a class="xref" href="re29.html" title="ext:stack-overflow"><code class="classname">ext:stack-overflow</code></a> and <a class="xref" href="re30.html" title="ext:storage-exhausted"><code class="classname">ext:storage-exhausted</code></a>, for stack and heap overflows,
   respectively. Both errors are correctable, as the following session
   shows:</p><pre class="programlisting">
&gt; (defun foo (x) (foo x))

FOO
&gt; (foo 1)
C-STACK overflow at size 1654784. Stack can probably be resized.
Broken at SI:BYTECODES.Available restarts:
1. (CONTINUE) Extend stack size
Broken at FOO.
&gt;&gt; :r1
C-STACK overflow at size 2514944. Stack can probably be resized.
Broken at SI:BYTECODES.Available restarts:
1. (CONTINUE) Extend stack size
Broken at FOO.
&gt;&gt; :q
Top level.
</pre></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch20s03.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch20.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="ch20s05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">5.3.&#160;Memory limits&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;5.5.&#160;Finalization</td></tr></table></div></body></html>