PATCH to tweak -verbose:clas behavior
Per Bothner
per@bothner.com
Wed Jul 14 13:10:00 GMT 2004
This patch changes the output of -verbose:class to print a message when
a class is loaded, not when it is initialized, to better match JDK. (It
also produces more useful results for getting a list of "needed"
classes.) A complication is pre-compiled classes. Previously, they
were considered loaded as soon as they were registered, which isn't very
useful. I changed the states enum so that JV_STATE_COMPILED is less
than JV_STATE_LOADED, so when a compiled class is registered, it becomes
JV_STATE_COMPILED, but not JV_STATE_LOADED. The state only becomes
JV_STATE_LOADED when the class is specifically needed, either by a
_JV_WaitForState (as might be called from _Jv_FindClass), or when the
class is initialized.
Comments?
--
--Per Bothner
per@bothner.com http://per.bothner.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: load-verbose.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040714/b1849ef2/attachment.ksh>
More information about the Java-patches
mailing list