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:
Bryce McKinlay 2000-12-22 06:19:24 +00:00 committed by Bryce McKinlay
parent 98c17df26e
commit 86a42a5f24
4 changed files with 18 additions and 0 deletions

View file

@ -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;
}