Changes between Version 2 and Version 3 of OOMHandling


Ignore:
Timestamp:
01/04/10 20:50:54 (11 years ago)
Author:
astalla
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OOMHandling

    v2 v3  
    66
    77 * if they are thrown by Java code invoked through the [wiki:JavaFfi Java FFI], they are automatically remapped to a condition of type JAVA-EXCEPTION or to another custom type defined by the user (refer to [wiki:JavaFfi Java FFI] for details).
    8  * if they are thrown during the execution of Lisp code - which can be the case for serious errors like exhaustion of heap memory or call stack overflow - the Lisp stack unwinds while the exception propagates up; the unwinding stops at the first handler-bind (this includes forms that use handler-bind in their implementation, such as handler-case and ignore-errors). The exception is then remapped to a Lisp condition, allowing user code to handle it. In particular, OutOfMemoryError and StackOverflowError are remapped to STORAGE-CONDITION.
     8 * if they are thrown during the execution of Lisp code - which can be the case for serious errors like exhaustion of heap memory or call stack overflow - the Lisp stack unwinds while the exception propagates up; the unwinding stops at the first handler-bind (this includes forms that use handler-bind in their implementation, such as handler-case and ignore-errors). The exception is then remapped to a Lisp condition, allowing user code to handle it. In particular, [http://java.sun.com/javase/6/docs/api/java/lang/OutOfMemoryError.html OutOfMemoryError] and [http://java.sun.com/javase/6/docs/api/java/lang/StackOverflowError.html StackOverflowError] are remapped to STORAGE-CONDITION.
    99   Of course the standard Common Lisp condition handling still applies fully in this exceptional case (e.g. with respect to the dynamic environment in which handlers are run). The unwinding of the stack allows the garbage collector to reclaim some memory, so it's possible to recover from the error (for example, by emptying caches used by the application).