This is the mail archive of the java-patches@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]

Re: Recognize obsoleted options


Ranjit Mathew wrote:

"-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.



Interesting. I presume then that the default is actually "-verifyremote" - ie verify classes if they are loaded by other than the system classloader (or one of its parents). We could implement this behaviour easily enough, although I'm inclined to stick with the status quo for now since it means both the verifier and GCJ's bytecode output are more likely to get tested.


Bryce


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