[armedbear-cvs] r11412 - trunk/j/src/org/armedbear/lisp

Ville Voutilainen vvoutilainen at common-lisp.net
Wed Dec 3 22:44:19 UTC 2008


Author: vvoutilainen
Date: Wed Dec  3 22:44:19 2008
New Revision: 11412

Log:
Don't generate stack trace information when constructing
a ConditionThrowable (or it's descendants, Go/Return/Throw).
This makes the aforementioned operations faster.


Modified:
   trunk/j/src/org/armedbear/lisp/ConditionThrowable.java

Modified: trunk/j/src/org/armedbear/lisp/ConditionThrowable.java
==============================================================================
--- trunk/j/src/org/armedbear/lisp/ConditionThrowable.java	(original)
+++ trunk/j/src/org/armedbear/lisp/ConditionThrowable.java	Wed Dec  3 22:44:19 2008
@@ -40,6 +40,14 @@
     public ConditionThrowable()
     {
     }
+    /**
+     * Overridden in order to make ConditionThrowable construct
+     * faster. This avoids gathering stack trace information.
+     */
+    public Throwable fillInStackTrace()
+    {
+	return this;
+    }
 
     public ConditionThrowable(Condition condition)
     {




More information about the armedbear-cvs mailing list