Recognize obsoleted options

Ranjit Mathew rmathew@gmail.com
Fri May 13 10:07:00 GMT 2005


Bryce McKinlay wrote:
> Aaron Luchko wrote:
> 
> 
>>The only real documentation of any of these I could find is an oreilly
>>book.  Although the sun vm accepts all these options I don't believe
>>they implement them since it's obsoleted, also looking at the size of
>>diffs of straces of runs with and without the option there wasn't much
>>of a difference with the -noverify.  
>>The only mention of any of these options on the sun site I could find is
>>this bug report which seems to suggest none of them are implemented
>>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4337532
>> 
> 
> Actually, -noverify is still supported, even if they don't document it.

"-verify" is also still supported. You can verify it(!)
yourself by testing out the bytecode produced by GCJ
for the testcase in PR19870. Sun's JRE happily prints
out "42" without indicating an error unless you pass
"-verify" on the command line.

I have tested this out with Sun JDK 1.4.2_07 as well as
JDK 1.5.0_03.

The most probable reason for no difference in the strace
output is that verification happens on the bytecode
loaded in memory without necessarily needing to invoke
system calls.

Ranjit.

-- 
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://ranjitmathew.hostingzero.com/



More information about the Java-patches mailing list