classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Small Throwable patch


From: Archie Cobbs
Subject: [cp-patches] Small Throwable patch
Date: Fri, 18 Feb 2005 21:05:29 -0600 (CST)

I'm planning to commit this patch. The reason for it is that the
logic of initCause() is unnecessary in the constructor, and represents
unnecessary overhead which we pay for every time a chained exception
is created. The effect is especially exacerbated when the constructor
invocation is inlined at every instantiation site, bloating code size.

Note that initCause() is not final, so a subclass could override it;
however the constructor does not specify that it calls initCause() to
initialize the cause so this doesn't change any specified behavior.

2005-02-19  Archie Cobbs  <address@hidden>
 
     * java/lang/Throwable.java: simplify initializing cause in constructor

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

Attachment: cause.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]