Bug 14781 - disable bytecode verification for bootclasspath
Summary: disable bytecode verification for bootclasspath
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: libgcj (show other bugs)
Version: 4.0.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-30 05:43 UTC by rmathew
Modified: 2016-09-30 22:49 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2005-09-24 15:56:01


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rmathew 2004-03-30 05:43:41 UTC
There is currently no way to disable bytecode verification
of loaded classes in gij, except by either commenting out 
the call to _Jv_VerifyMethod( ) in libjava/resolve.cc
or by emptying out the body of that method in 
libjava/verify.cc and then recompiling the whole
of libgcj!

Needless to say this is quite tedious.

Sun's JVMs support the following flags that should
be implemented by gij as well:

  -noverify       Do not do bytecode verification.
  -verify         Verify *all* loaded bytecode.

In addition, Sun's JVMs do not verify the classes in
the bootstrap CLASSPATH by default, unless explicitly
instructed by using the "-verify" flag. Again, gij
could benefit from this "optimisation".
Comment 1 Andrew Pinski 2004-03-30 05:49:57 UTC
Confirmed.
Comment 2 Ranjit Mathew 2004-05-31 11:50:53 UTC
Actually, verification is no longer optional according to the JVMS as well as
the JLS (Second Edition):

http://java.sun.com/docs/books/vmspec/2nd-edition/html/ChangesAppendix.doc.html#448680
http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html#44490

That explains why the corresponding options are "hidden" in the JDK (at least
as of 1.4.2).

So should this be marked as WONTFIX?
Comment 3 Tom Tromey 2004-10-28 17:14:05 UTC
I think we'll still want a flag allowing the user to disable verification.
Comment 4 Tom Tromey 2005-05-25 15:16:24 UTC
We now have -verify and -noverify flags.
However, we still verify classes found on the bootclasspath.
I've changed this PR's synopsis to reflect this.

One question is whether we care about the bootclasspath feature.
Comment 5 Andrew Pinski 2016-09-30 22:49:59 UTC
Closing as won't fix as libgcj (and the java front-end) has been removed from the trunk.