This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Static executables
- From: Per Bothner <per at bothner dot com>
- To: gnustuff at thisiscool dot com
- Cc: tromey at redhat dot com, David Daney <ddaney at avtrex dot com>, Andrzej Bialecki <ab at getopt dot org>, java at gcc dot gnu dot org
- Date: Mon, 30 Jan 2006 16:14:27 -0800
- Subject: Re: Static executables
- References: <G84X4Y2W4ZEB32WSED5Y21TRYWC7FB.43dea8f0@d9300>
Mohan Embar wrote:
(i.e. private static final Class c1 = gnu.java.locale.Calendar.class)
An optimizer might might remove an unused private field
that is initialized by a side-effect-free expression.
Of course we can agree that this is a special idiom that the
optimizer recognizes (at least in static mode), and thus
not remove the field.
Or just not use a private field.
--
--Per Bothner
per@bothner.com http://per.bothner.com/