This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: New gcj option --no-store-check
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: java at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Thu, 28 Feb 2002 16:06:24 -0800 (PST)
- Subject: Re: New gcj option --no-store-check
- References: <3C7EBB3C.7010104@waitaki.otago.ac.nz>
- Reply-to: apbianco at redhat dot com
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