Message-ID: <454349180.13611.1406630586817.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_13610_801675894.1406630586817" ------=_Part_13610_801675894.1406630586817 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Partly for historical reasons, we use our own built-in assertion facilit= y rather than the one that appeared in Sun®'s JDK 1.4. All assertion ch= ecks have one of the two forms:
VM.VerifyAssertions is a
public static final f=
config.assertions configuration variable determines =
VM.VerifyAssertions' value. If
is set to
none, Jikes RVM has no assertion overhead.
If you use the form without a message, then the default message=
vm internal error at:" will appear.
If you use the form with a message the message must be= a single string literal. Doing string appends in assertions can be a sourc= e of horrible performance problems when assertions are enabled (i.e. most d= evelopment builds). If you want to provide a more detailed error message wh= en the assertion fails, then you must use the following coding pattern:
An assertion failure is always followed by a stack dump.
VM.ExtremeAssertions instead of
fyAssertions if the assertion is costly to check but generally usefu=
l. These kinds of assertions are only enabled when
/code> is set to
o guard assertions that relate to the intermediate representation in the op=
The assert keyword may be used in the MMTk Harness.