New gcj option --no-store-check

Alexandre Petit-Bianco apbianco@cygnus.com
Thu Feb 28 16:18:00 GMT 2002


Bryce McKinlay writes:

> I've committed a patch which implements some optimizations for array
> accesses as well as a new flag, --no-store-check, which disables
> assignability checks for stores into object arrays. It works much
> like --no-bounds-check: for code that you are sure will never throw
> an ArrayStoreException, this flag can be used to disable the checks
> which can provide a reasonable performance boost and reduce code
> size slightly.

I remember someone mentionned this was worth a news item. How about
this one?

./A

2002-02-28  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* index.html (GCJ NEWS): Mentionned Bryce's array check
	improvements.

Index: index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/java/index.html,v
retrieving revision 1.99
diff -u -p -r1.99 index.html
--- index.html  2002/01/23 19:12:59     1.99
+++ index.html  2002/03/01 00:12:10
@@ -72,6 +72,17 @@ can see the <a href="libgcj-classpath-co
 <!-- News entries start here -->
 
 <tr><td valign="top">
+<b>February 28, 2002</b>
+</td><td>
+Bryce McKinlay has contributed a patch to optimize some of the array
+access and added a new compiler flag, <code>--no-store-check</code>,
+to disable assignability checks for stores into object arrays. With
+code that is known not to throw <code>ArrayStoreException</code>, this
+flag can be used to disable the check operations. In which case it can
+provide a reasonable performance boost and slight code size reduction.
+</td><tr>
+
+<tr><td valign="top">
 <b>January 22, 2002</b>
 </td><td>
 Tom Tromey has contributed a patch to allow certain Java method calls



More information about the Java mailing list