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

class initialization check overhead


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


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