Throwable.java (trace_enabled): New static field.
* java/lang/Throwable.java (trace_enabled): New static field. * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if trace_enabled not set. * prims.cc (main_init): Turn off trace_enabled while creating default exception objects. From-SVN: r38442
This commit is contained in:
committed by
Bryce McKinlay
parent
98c17df26e
commit
86a42a5f24
@@ -164,6 +164,8 @@ public class Throwable implements Serializable
|
||||
// Name of this field comes from serialization spec.
|
||||
private String detailMessage;
|
||||
|
||||
// Setting this flag to false prevents fillInStackTrace() from running.
|
||||
static boolean trace_enabled = true;
|
||||
private transient byte stackTrace[];
|
||||
private static final long serialVersionUID = -3042686055658047285L;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user