This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

assertion support


Hi,

I have some questions about the plans for assertion support in gij/gcj.

I see Bug 6996 (gij needs assertion-related command-line options).  I
have a patch that adds command line options for controlling assertion
status to gij.  This is done similiarly to how the properties specified
on the command line are handled, and VMClassLoader.<clinit> takes
care of setting up the defaults.

Is this what the bug had in mind, or something more sophisticated such
as optimizing the byte code at load time if $assertionsDisabled is true?

Also, what about support in gcj?  Would it make sense to be able to set
defaults at compile time, which could be changed at runtime by
a GCJ_ASSERTION_STATUS environment variable?  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]