class initialization check overhead
Adam Megacz
adam@megacz.com
Wed Oct 23 11:21:00 GMT 2002
I noticed that every static method has a check at the top of the
method to see if <clinit> needs to be run. Doesn't this incur
substantial overhead?
Could this be eliminated by putting each class (static data and code)
on its own page and write-protecting the page? Then you could catch
SIGSEGV and perform the initialization.
- a
--
"Through your rags I see your vanity" -- Socrates
More information about the Java
mailing list