Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/ControlFlowException.java @ 13820:20e7727588e8
ControlFlowException can always have a null cause
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 29 Jan 2014 20:43:28 -0800 |
parents | 494b818b527c |
children |
comparison
equal
deleted
inserted
replaced
13819:49db2c1e3bee | 13820:20e7727588e8 |
---|---|
34 | 34 |
35 /** | 35 /** |
36 * Creates an exception thrown to model control flow. | 36 * Creates an exception thrown to model control flow. |
37 */ | 37 */ |
38 public ControlFlowException() { | 38 public ControlFlowException() { |
39 /* | |
40 * We use the super constructor that initializes the cause to null. Without that, the cause | |
41 * would be this exception itself. This helps escape analysis: it avoids the circle of an | |
42 * object pointing to itself. | |
43 */ | |
44 super((Throwable) null); | |
39 } | 45 } |
40 | 46 |
41 /** | 47 /** |
42 * For performance reasons, this exception does not record any stack trace information. | 48 * For performance reasons, this exception does not record any stack trace information. |
43 */ | 49 */ |