Hi, I am searching for some information about the techniques used in the hotspot vm. No general informations. What I really need are informations about the techniques used in the virtual machine and which preconditions must be fulfilled so that the techniques are applicable. thanks stephan
What do you need this for? I do ask because this is a quite general (and possibly hard to answer) question, so knowing more about your needs might help us helping you...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I came across a JavaOne presentation once, but I can't seem to find it right now. Hope this help. Regards,
Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182108/" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
Joined: Oct 26, 2003
Originally posted by Ilja Preuss: What do you need this for? I do ask because this is a quite general (and possibly hard to answer) question, so knowing more about your needs might help us helping you...
Thanks for your reply. Here are my questions about the optimization techniques: [list]First Problem: It seems to me that at least in the client version of the VM the following two source codes have a different performance (Source 2 seems to be better). Source 1:
Am I right or completely wrong? If I am right does this depend on the method inlining technique used in the VM? Anyway: Which methods are inlined and when are they inlined?
Second Problem: I have read that it is not advicable to use object pools with the
Java Hotspot VM. But I have used an iterator pool in my application and the performance has increased by 10 percent. To be more precise the code looks like this:
and the classes which uses this iterator looks like this:
Question: Is the increased performance dued to the not local life-time of the iterator objects or is this iterator pool also applicable to normal for-loops?
Because the cast-operators and the instanceof-operator may also decrease the performance I was wondering if there exists an optimization technique to optimistically eliminate these operators?
Thanks Stephan [ October 27, 2003: Message edited by: stephan schweitzer ]